#402E9E#402E9E

#402E9E is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.172 H 282.6°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#402E9E
RGBrgb(64, 46, 158)
HSLhsl(250, 55%, 40%)
HSVhsv(250, 71%, 62%)
CMYKcmyk(59.5%, 70.9%, 0%, 38%)
CIE-LABlab(28.15, 39.79, -58.12)
CIE-LCHlch(28.15, 70.43, 304.40°)
OKLaboklab(39.78% 0.0375 -0.1674)
OKLCHoklch(39.78% 0.172 282.6)
XYZxyz(9.2610, 5.5120, 32.9170)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E9E #8C9E2E
analogous
#2E549E #402E9E #782E9E
triadic
#402E9E #9E402E #2E9E40
tetradic
#402E9E #9E2E54 #8C9E2E #2E9E78
square
#402E9E #9E2E54 #8C9E2E #2E9E78
split-complementary
#402E9E #9E782E #549E2E
monochromatic
#1A123F #2D206F #402E9E #5741C8 #8171D6

Accessibility & contrast

On white

9.99
#402E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#402E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E9E
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E9E#FFFFFF#000000##FFFFFF
##402E9E1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#044C62
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #402e9e;
/* rgb */ color: rgb(64, 46, 158);
/* oklch */ color: oklch(39.8% 0.172 282.6);
Tailwind
colors: {
  custom: {
    50: '#8068bc',
    500: '#402e9e',
    950: '#000000',
  },
}
SCSS
$custom: #402e9e;
$custom-light: #8068bc;
$custom-dark: #000000;
JSON
{
  "hex": "#402e9e",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 249.643,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.39777,
    "c": 0.17153,
    "h": 282.6
  },
  "luminance": 0.05513
}

Semantic roles & 50–950 ramp

primary
#402E9E
secondary
#B0BD6B
accent
#DE4AC6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #402E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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