Color #402EB8 Color / Colour Code #402EB8
This page shows the hex color code for color #402eb8 (#402EB8). The colour is a blue tone with 60% saturation and 45% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.
Color Conversions
Accessibility Contrast
WCAG contrast ratios for #402EB8 against common backgrounds.
Complementary Colors
#402EB8 paired with its color wheel opposite for maximum contrast.
Analogous Colors
Hues at 218, 248, and 278 degrees for harmonious combinations.
Triadic Palette
Three colors at 248, 8, and 128 degrees.
Color Palettes Using #402EB8
Five shades at lightness levels 15% through 85% while keeping hue at 248 and saturation at 60%. Use the darkest shade for text and the lightest for backgrounds to build a cohesive single-hue design system.
Adjacent hues from 248 to 293 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 248 with its complement at 68 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 #402EB8
Lightness variations at hue 248 and 60% saturation.
CSS Gradients with #402EB8
Design Use Cases for #402EB8
Vibrant Brand Color
#402EB8 has a strong 60% saturation that makes it ideal for brand identity elements. Use it for logos, primary call-to-action buttons, hero section accents, and marketing materials where visual impact matters. This saturation level is eye-catching without being harsh.
Primary Interface Color
At 45% lightness, #402EB8 is in the mid-range, making it ideal for interactive elements like buttons, links, and selected states. This lightness level ensures good contrast against both light and dark adjacent elements in most layouts.
Trust & Professional Identity
#402EB8 sits in the blue range (hue 248). 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 #402EB8 (hue 248) to its complement at hue 68. For a subtler effect, try pairing with an analogous color at hue 278. Use CSS: background: linear-gradient(135deg, #402eb8, #a5b82e);
CSS Code for #402EB8
Similar Colors
Colors visually similar to #402EB8 based on RGB, lightness, and hue variations.
Use This Color in Design Tools
Apply #402EB8 across image editing and color design tools.
About Color #402EB8 (#402EB8)
#402EB8 is a blue color (colour) with RGB channel values of 64 red, 46 green, and 184 blue. The blue channel is dominant by a ratio of 4.0:1 over the weakest channel. In HSL terms, the hue sits at 248 degrees with 60% saturation and 45% lightness, placing it in the cool range of the colour spectrum.
The perceived brightness of #402EB8 is 67/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 65% cyan, 75% magenta, 0% yellow, and 28% key (black).
The WCAG contrast ratio of #402EB8 against white is 9.13:1 and against black is 2.30: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 #A5B82E creates maximum visual tension when paired with #402EB8. For more harmonious color combinations, use the analogous colours #2E60B8 and #852EB8, 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 #402EB8
- 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 #402EB8?
- #402EB8 is Color #402EB8, a blue color (colour) with RGB(64, 46, 184), HSL(248, 60%, 45%), and CMYK(65%, 75%, 0%, 28%). Its perceived brightness is 67/255.
- Is #402EB8 accessible for text?
- Against white, #402EB8 has a contrast ratio of 9.13:1 (passes AA for normal text). Against black, it has 2.30:1 (fails AA). Use the contrast checker tool for custom background pairings.
- What colours pair well with #402EB8?
- The complementary colour is #A5B82E (hue 68). For subtle color combinations, use analogous colours #2E60B8 and #852EB8. The triadic palette adds #B8402E and #2EB840 for vibrant variety.
- How do I use #402EB8 in CSS?
- Use any format: color: #402eb8; or rgb(64, 46, 184); or hsl(248, 60%, 45%). For CSS custom properties: --color-primary: 248 60% 45%; 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.