#402EB9#402EB9

#402EB9 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.4% C 0.205 H 278.9°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#402EB9
RGBrgb(64, 46, 185)
HSLhsl(248, 60%, 45%)
HSVhsv(248, 75%, 73%)
CMYKcmyk(65.4%, 75.1%, 0%, 27.5%)
CIE-LABlab(30.75, 48.24, -70.04)
CIE-LCHlch(30.75, 85.05, 304.56°)
OKLaboklab(42.41% 0.0318 -0.2022)
OKLCHoklch(42.41% 0.205 278.9)
XYZxyz(11.8455, 6.5458, 46.5288)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EB9 #A7B92E
analogous
#2E61B9 #402EB9 #862EB9
triadic
#402EB9 #B9402E #2EB940
tetradic
#402EB9 #B92E61 #A7B92E #2EB986
square
#402EB9 #B92E61 #A7B92E #2EB986
split-complementary
#402EB9 #B9862E #61B92E
monochromatic
#1E1657 #2F2288 #402EB9 #6251D4 #8E82E0

Accessibility & contrast

On white

9.09
#402EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#402EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402EB9
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EB9#FFFFFF#000000##FFFFFF
##402EB91.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBD
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #402eb9;
/* rgb */ color: rgb(64, 46, 185);
/* oklch */ color: oklch(42.4% 0.205 278.9);
Tailwind
colors: {
  custom: {
    50: '#856acf',
    500: '#402eb9',
    950: '#000000',
  },
}
SCSS
$custom: #402eb9;
$custom-light: #856acf;
$custom-dark: #000000;
JSON
{
  "hex": "#402eb9",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 247.77,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42413,
    "c": 0.20473,
    "h": 278.9
  },
  "luminance": 0.06547
}

Semantic roles & 50–950 ramp

primary
#402EB9
secondary
#BFC97A
accent
#E344CF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #402EB9

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#402EB9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva