#402CB4#402CB4

#402CB4 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.6% C 0.201 H 279.8°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#402CB4
RGBrgb(64, 44, 180)
HSLhsl(249, 61%, 44%)
HSVhsv(249, 76%, 71%)
CMYKcmyk(64.4%, 75.6%, 0%, 29.4%)
CIE-LABlab(29.88, 47.76, -68.51)
CIE-LCHlch(29.88, 83.51, 304.88°)
OKLaboklab(41.65% 0.0342 -0.1978)
OKLCHoklch(41.65% 0.201 279.8)
XYZxyz(11.2506, 6.1858, 43.7723)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402CB4 #A0B42C
analogous
#2C5CB4 #402CB4 #842CB4
triadic
#402CB4 #B4402C #2CB440
tetradic
#402CB4 #B42C5C #A0B42C #2CB484
square
#402CB4 #B42C5C #A0B42C #2CB484
split-complementary
#402CB4 #B4842C #5CB42C
monochromatic
#1D1452 #2F2083 #402CB4 #5E4AD3 #8A7CDF

Accessibility & contrast

On white

9.39
#402CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#402CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402CB4
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402CB4#FFFFFF#000000##FFFFFF
##402CB41.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.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: #402cb4;
/* rgb */ color: rgb(64, 44, 180);
/* oklch */ color: oklch(41.6% 0.201 279.8);
Tailwind
colors: {
  custom: {
    50: '#8468cc',
    500: '#402cb4',
    950: '#000000',
  },
}
SCSS
$custom: #402cb4;
$custom-light: #8468cc;
$custom-dark: #000000;
JSON
{
  "hex": "#402cb4",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 180
  },
  "hsl": {
    "h": 248.824,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.41647,
    "c": 0.2007,
    "h": 279.8
  },
  "luminance": 0.06187
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #402CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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