Color #402FEE Color / Colour Code #402FEE
This page shows the hex color code for color #402fee (#402FEE). The colour is a blue tone with 85% saturation and 56% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.
Color Conversions
Accessibility Contrast
WCAG contrast ratios for #402FEE against common backgrounds.
Complementary Colors
#402FEE paired with its color wheel opposite for maximum contrast.
Analogous Colors
Hues at 215, 245, and 275 degrees for harmonious combinations.
Triadic Palette
Three colors at 245, 5, and 125 degrees.
Color Palettes Using #402FEE
Five shades at lightness levels 15% through 85% while keeping hue at 245 and saturation at 85%. Use the darkest shade for text and the lightest for backgrounds to build a cohesive single-hue design system.
Adjacent hues from 245 to 290 degrees create a warm, unified palette. This analogous scheme works for marketing materials, seasonal campaigns, and any design that needs visual warmth without clashing colors.
Combines the base color at hue 245 with its complement at 65 and two adjacent cool tones. This split-complementary approach provides strong visual contrast while remaining more balanced than a pure complementary scheme.
Five evenly spaced hues at 40% saturation and 80% lightness. Pastels are gentle on the eyes and work well for dashboards, onboarding screens, category tags, and any interface where multiple distinct colors are needed without visual aggression.
Shades & Tints of #402FEE
Lightness variations at hue 245 and 85% saturation.
CSS Gradients with #402FEE
Design Use Cases for #402FEE
High-Impact Accent
With 85% saturation, #402FEE is highly vivid. Reserve this for elements that need maximum attention: primary action buttons, notification badges, error states, or promotional banners. Use sparingly alongside neutral tones to avoid visual fatigue.
Soft Accent & Highlight
With 56% lightness, #402FEE has a softer, more approachable quality. It works well for hover states, subtle highlights, progress indicators, and secondary UI elements. This lightness range is particularly effective for tag backgrounds and status indicators.
Trust & Professional Identity
#402FEE sits in the blue range (hue 245). Blue is the world's most popular color for corporate identities because it conveys trust, stability, and competence. Use it for navigation bars, link text, form focus states, and any element where user confidence matters. Financial, healthcare, and technology brands rely heavily on this hue range.
Gradient Pairing
Create a gradient from #402FEE (hue 245) to its complement at hue 65. For a subtler effect, try pairing with an analogous color at hue 275. Use CSS: background: linear-gradient(135deg, #402fee, #deee2f);
CSS Code for #402FEE
Similar Colors
Colors visually similar to #402FEE based on RGB, lightness, and hue variations.
Use This Color in Design Tools
Apply #402FEE across image editing and color design tools.
About Color #402FEE (#402FEE)
#402FEE is a blue color (colour) with RGB channel values of 64 red, 47 green, and 238 blue. The blue channel is dominant by a ratio of 5.1:1 over the weakest channel. In HSL terms, the hue sits at 245 degrees with 85% saturation and 56% lightness, placing it in the cool range of the colour spectrum.
The perceived brightness of #402FEE is 74/255 using the ITU-R BT.601 luma formula (0.299R + 0.587G + 0.114B). This appears dark to the human eye, so pair it with light text for adequate readability. For print production, the CMYK equivalent is 73% cyan, 80% magenta, 0% yellow, and 7% key (black).
The WCAG contrast ratio of #402FEE against white is 7.34:1 and against black is 2.86:1. This exceeds the AAA requirement (7:1) for normal text on white, making it excellent for body text and small UI labels on light backgrounds.
The complementary colour #DEEE2F creates maximum visual tension when paired with #402FEE. For more harmonious color combinations, use the analogous colours #2F7FEE and #9F2FEE, which sit 30 degrees on either side of the hue wheel. To build a complete design system, start with the monochromatic scale above for consistent shade variations, then add one complementary or triadic accent for interactive elements.
How to Explore Color #402FEE
- Enter your color value in HEX format.
- The tool converts it to RGB, HSL, CMYK format in real time.
- Copy the converted value to your clipboard.
What is HEX to RGB, HSL, CMYK color conversion
Converting from HEX to RGB, HSL, CMYK translates a color value between two different color models. Different color models are used in web design (HEX, RGB), print (CMYK), and color theory (HSL, HSV).
Related Tools & Colors
Frequently Asked Questions
- What color / colour is #402FEE?
- #402FEE is Color #402FEE, a blue color (colour) with RGB(64, 47, 238), HSL(245, 85%, 56%), and CMYK(73%, 80%, 0%, 7%). Its perceived brightness is 74/255.
- Is #402FEE accessible for text?
- Against white, #402FEE has a contrast ratio of 7.34:1 (passes AA for normal text). Against black, it has 2.86:1 (fails AA). Use the contrast checker tool for custom background pairings.
- What colours pair well with #402FEE?
- The complementary colour is #DEEE2F (hue 65). For subtle color combinations, use analogous colours #2F7FEE and #9F2FEE. The triadic palette adds #EE3F2F and #2FEE3F for vibrant variety.
- How do I use #402FEE in CSS?
- Use any format: color: #402fee; or rgb(64, 47, 238); or hsl(245, 85%, 56%). For CSS custom properties: --color-primary: 245 85% 56%; then use it as hsl(var(--color-primary)).
- Is this color / colour explorer free?
- Yes, completely free with no signup required. All colour calculations run in your browser. You can explore any valid hex color code, not just the pre-generated palette.