#402CB9#402CB9

#402CB9 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.2% C 0.207 H 279.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#402CB9
RGBrgb(64, 44, 185)
HSLhsl(249, 62%, 45%)
HSVhsv(249, 76%, 73%)
CMYKcmyk(65.4%, 76.2%, 0%, 27.5%)
CIE-LABlab(30.38, 49.29, -70.64)
CIE-LCHlch(30.38, 86.14, 304.90°)
OKLaboklab(42.16% 0.033 -0.204)
OKLCHoklch(42.16% 0.207 279.2)
XYZxyz(11.7692, 6.3932, 46.5033)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402CB9 #A5B92C
analogous
#2C5EB9 #402CB9 #872CB9
triadic
#402CB9 #B9402C #2CB940
tetradic
#402CB9 #B92C5E #A5B92C #2CB987
square
#402CB9 #B92C5E #A5B92C #2CB987
split-complementary
#402CB9 #B9872C #5EB92C
monochromatic
#1E1456 #2F2088 #402CB9 #614DD5 #8D7FE1

Accessibility & contrast

On white

9.22
#402CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#402CB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402CB9
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402CB9#FFFFFF#000000##FFFFFF
##402CB91.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBD
Deuteranopia (green-blind)
#0042B6
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #402cb9;
/* rgb */ color: rgb(64, 44, 185);
/* oklch */ color: oklch(42.2% 0.207 279.2);
Tailwind
colors: {
  custom: {
    50: '#8568cf',
    500: '#402cb9',
    950: '#000000',
  },
}
SCSS
$custom: #402cb9;
$custom-light: #8568cf;
$custom-dark: #000000;
JSON
{
  "hex": "#402cb9",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 248.511,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42155,
    "c": 0.20664,
    "h": 279.2
  },
  "luminance": 0.06394
}

Semantic roles & 50–950 ramp

primary
#402CB9
secondary
#BEC978
accent
#E543CE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #402CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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