#402AB3#402AB3

#402AB3 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.3% C 0.201 H 280.2°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#402AB3
RGBrgb(64, 42, 179)
HSLhsl(250, 62%, 43%)
HSVhsv(250, 77%, 70%)
CMYKcmyk(64.2%, 76.5%, 0%, 29.8%)
CIE-LABlab(29.41, 48.48, -68.68)
CIE-LCHlch(29.41, 84.07, 305.22°)
OKLaboklab(41.29% 0.0357 -0.1982)
OKLCHoklch(41.29% 0.201 280.2)
XYZxyz(11.0764, 5.9997, 43.2135)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402AB3 #9DB32A
analogous
#2A58B3 #402AB3 #842AB3
triadic
#402AB3 #B3402A #2AB340
tetradic
#402AB3 #B32A58 #9DB32A #2AB384
square
#402AB3 #B32A58 #9DB32A #2AB384
split-complementary
#402AB3 #B3842A #58B32A
monochromatic
#1D1350 #2E1E81 #402AB3 #5D46D4 #8978DF

Accessibility & contrast

On white

9.54
#402AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#402AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402AB3
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402AB3#FFFFFF#000000##FFFFFF
##402AB31.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#0040B1
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #402ab3;
/* rgb */ color: rgb(64, 42, 179);
/* oklch */ color: oklch(41.3% 0.201 280.2);
Tailwind
colors: {
  custom: {
    50: '#8467cb',
    500: '#402ab3',
    950: '#000000',
  },
}
SCSS
$custom: #402ab3;
$custom-light: #8467cb;
$custom-dark: #000000;
JSON
{
  "hex": "#402ab3",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 249.635,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4129,
    "c": 0.20142,
    "h": 280.2
  },
  "luminance": 0.06001
}

Semantic roles & 50–950 ramp

primary
#402AB3
secondary
#B9C772
accent
#E543CB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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