#402CB3#402CB3

#402CB3 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.5% C 0.200 H 280.0°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#402CB3
RGBrgb(64, 44, 179)
HSLhsl(249, 61%, 44%)
HSVhsv(249, 75%, 70%)
CMYKcmyk(64.2%, 75.4%, 0%, 29.8%)
CIE-LABlab(29.78, 47.45, -68.08)
CIE-LCHlch(29.78, 82.98, 304.87°)
OKLaboklab(41.55% 0.0345 -0.1965)
OKLCHoklch(41.55% 0.2 280)
XYZxyz(11.1491, 6.1452, 43.2377)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402CB3 #9FB32C
analogous
#2C5BB3 #402CB3 #832CB3
triadic
#402CB3 #B3402C #2CB340
tetradic
#402CB3 #B32C5B #9FB32C #2CB383
square
#402CB3 #B32C5B #9FB32C #2CB383
split-complementary
#402CB3 #B3832C #5BB32C
monochromatic
#1D1451 #2E2082 #402CB3 #5E4AD2 #8A7BDF

Accessibility & contrast

On white

9.42
#402CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#402CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402CB3
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402CB3#FFFFFF#000000##FFFFFF
##402CB31.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402cb3;
/* rgb */ color: rgb(64, 44, 179);
/* oklch */ color: oklch(41.5% 0.200 280.0);
Tailwind
colors: {
  custom: {
    50: '#8468cb',
    500: '#402cb3',
    950: '#000000',
  },
}
SCSS
$custom: #402cb3;
$custom-light: #8468cb;
$custom-dark: #000000;
JSON
{
  "hex": "#402cb3",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 248.889,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41546,
    "c": 0.1995,
    "h": 280
  },
  "luminance": 0.06146
}

Semantic roles & 50–950 ramp

primary
#402CB3
secondary
#BBC774
accent
#E444CC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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