#402EA9#402EA9

#402EA9 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.8% C 0.185 H 281.0°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#402EA9
RGBrgb(64, 46, 169)
HSLhsl(249, 57%, 42%)
HSVhsv(249, 73%, 66%)
CMYKcmyk(62.1%, 72.8%, 0%, 33.7%)
CIE-LABlab(29.18, 43.26, -63.08)
CIE-LCHlch(29.18, 76.49, 304.45°)
OKLaboklab(40.83% 0.0354 -0.1819)
OKLCHoklch(40.83% 0.185 281)
XYZxyz(10.2505, 5.9078, 38.1286)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EA9 #97A92E
analogous
#2E5AA9 #402EA9 #7D2EA9
triadic
#402EA9 #A9402E #2EA940
tetradic
#402EA9 #A92E5A #97A92E #2EA97D
square
#402EA9 #A92E5A #97A92E #2EA97D
split-complementary
#402EA9 #A97D2E #5AA92E
monochromatic
#1C1449 #2E2179 #402EA9 #5B47CD #8677DA

Accessibility & contrast

On white

9.63
#402EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#402EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402EA9
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EA9#FFFFFF#000000##FFFFFF
##402EA91.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0040A7
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #402ea9;
/* rgb */ color: rgb(64, 46, 169);
/* oklch */ color: oklch(40.8% 0.185 281.0);
Tailwind
colors: {
  custom: {
    50: '#8269c4',
    500: '#402ea9',
    950: '#000000',
  },
}
SCSS
$custom: #402ea9;
$custom-light: #8269c4;
$custom-dark: #000000;
JSON
{
  "hex": "#402ea9",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 248.78,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40827,
    "c": 0.1853,
    "h": 281
  },
  "luminance": 0.05909
}

Semantic roles & 50–950 ramp

primary
#402EA9
secondary
#B6C271
accent
#E047CA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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