#402BB4#402BB4

#402BB4 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.5% C 0.202 H 280.0°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#402BB4
RGBrgb(64, 43, 180)
HSLhsl(249, 61%, 44%)
HSVhsv(249, 76%, 71%)
CMYKcmyk(64.4%, 76.1%, 0%, 29.4%)
CIE-LABlab(29.69, 48.28, -68.81)
CIE-LCHlch(29.69, 84.06, 305.05°)
OKLaboklab(41.52% 0.0349 -0.1986)
OKLCHoklch(41.52% 0.202 280)
XYZxyz(11.2138, 6.1121, 43.7600)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BB4 #9FB42B
analogous
#2B5AB4 #402BB4 #842BB4
triadic
#402BB4 #B4402B #2BB440
tetradic
#402BB4 #B42B5A #9FB42B #2BB484
square
#402BB4 #B42B5A #9FB42B #2BB484
split-complementary
#402BB4 #B4842B #5AB42B
monochromatic
#1D1351 #2E1F83 #402BB4 #5E49D3 #8A7ADF

Accessibility & contrast

On white

9.45
#402BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#402BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402BB4
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BB4#FFFFFF#000000##FFFFFF
##402BB41.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#0041B2
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #402bb4;
/* rgb */ color: rgb(64, 43, 180);
/* oklch */ color: oklch(41.5% 0.202 280.0);
Tailwind
colors: {
  custom: {
    50: '#8468cc',
    500: '#402bb4',
    950: '#000000',
  },
}
SCSS
$custom: #402bb4;
$custom-light: #8468cc;
$custom-dark: #000000;
JSON
{
  "hex": "#402bb4",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 249.197,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41518,
    "c": 0.20166,
    "h": 280
  },
  "luminance": 0.06113
}

Semantic roles & 50–950 ramp

primary
#402BB4
secondary
#BBC773
accent
#E543CC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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