#402E9B#402E9B

#402E9B is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.168 H 283.1°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#402E9B
RGBrgb(64, 46, 155)
HSLhsl(250, 54%, 39%)
HSVhsv(250, 70%, 61%)
CMYKcmyk(58.7%, 70.3%, 0%, 39.2%)
CIE-LABlab(27.87, 38.84, -56.74)
CIE-LCHlch(27.87, 68.76, 304.40°)
OKLaboklab(39.5% 0.0381 -0.1633)
OKLCHoklch(39.5% 0.168 283.1)
XYZxyz(9.0059, 5.4100, 31.5737)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E9B #899B2E
analogous
#2E539B #402E9B #772E9B
triadic
#402E9B #9B402E #2E9B40
tetradic
#402E9B #9B2E53 #899B2E #2E9B77
square
#402E9B #9B2E53 #899B2E #2E9B77
split-complementary
#402E9B #9B772E #539B2E
monochromatic
#19123D #2D206C #402E9B #5640C6 #806FD4

Accessibility & contrast

On white

10.09
#402E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#402E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E9B
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E9B#FFFFFF#000000##FFFFFF
##402E9B1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#0C4B61
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #402e9b;
/* rgb */ color: rgb(64, 46, 155);
/* oklch */ color: oklch(39.5% 0.168 283.1);
Tailwind
colors: {
  custom: {
    50: '#7f68b9',
    500: '#402e9b',
    950: '#000000',
  },
}
SCSS
$custom: #402e9b;
$custom-light: #7f68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#402e9b",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 249.908,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39497,
    "c": 0.16772,
    "h": 283.1
  },
  "luminance": 0.05411
}

Semantic roles & 50–950 ramp

primary
#402E9B
secondary
#AEBC69
accent
#DE4AC5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #402E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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