#402AB9#402AB9

#402AB9 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.9% C 0.208 H 279.4°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#402AB9
RGBrgb(64, 42, 185)
HSLhsl(249, 63%, 45%)
HSVhsv(249, 77%, 73%)
CMYKcmyk(65.4%, 77.3%, 0%, 27.5%)
CIE-LABlab(30.03, 50.30, -71.23)
CIE-LCHlch(30.03, 87.20, 305.23°)
OKLaboklab(41.91% 0.0342 -0.2057)
OKLCHoklch(41.91% 0.208 279.4)
XYZxyz(11.6965, 6.2478, 46.4791)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402AB9 #A3B92A
analogous
#2A5BB9 #402AB9 #882AB9
triadic
#402AB9 #B9402A #2AB940
tetradic
#402AB9 #B92A5B #A3B92A #2AB988
square
#402AB9 #B92A5B #A3B92A #2AB988
split-complementary
#402AB9 #B9882A #5BB92A
monochromatic
#1D1355 #2F1F87 #402AB9 #604AD6 #8C7CE1

Accessibility & contrast

On white

9.33
#402AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#402AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402AB9
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402AB9#FFFFFF#000000##FFFFFF
##402AB91.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBD
Deuteranopia (green-blind)
#0041B6
Tritanopia (blue-blind)
#005471
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #402ab9;
/* rgb */ color: rgb(64, 42, 185);
/* oklch */ color: oklch(41.9% 0.208 279.4);
Tailwind
colors: {
  custom: {
    50: '#8567cf',
    500: '#402ab9',
    950: '#000000',
  },
}
SCSS
$custom: #402ab9;
$custom-light: #8567cf;
$custom-dark: #000000;
JSON
{
  "hex": "#402ab9",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 249.231,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41907,
    "c": 0.20848,
    "h": 279.4
  },
  "luminance": 0.06249
}

Semantic roles & 50–950 ramp

primary
#402AB9
secondary
#BDCA75
accent
#E642CD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0614
muted
#7D7A82

Preview Lab

Preview with #402AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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