#402CBB#402CBB

#402CBB is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.4% C 0.209 H 279.0°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#402CBB
RGBrgb(64, 44, 187)
HSLhsl(248, 62%, 45%)
HSVhsv(248, 76%, 73%)
CMYKcmyk(65.8%, 76.5%, 0%, 26.7%)
CIE-LABlab(30.59, 49.89, -71.49)
CIE-LCHlch(30.59, 87.18, 304.91°)
OKLaboklab(42.36% 0.0325 -0.2064)
OKLCHoklch(42.36% 0.209 279)
XYZxyz(11.9818, 6.4782, 47.6231)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402CBB #A7BB2C
analogous
#2C5FBB #402CBB #882CBB
triadic
#402CBB #BB402C #2CBB40
tetradic
#402CBB #BB2C5F #A7BB2C #2CBB88
square
#402CBB #BB2C5F #A7BB2C #2CBB88
split-complementary
#402CBB #BB882C #5FBB2C
monochromatic
#1E1558 #2F2089 #402CBB #624FD6 #8E80E1

Accessibility & contrast

On white

9.15
#402CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#402CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402CBB
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402CBB#FFFFFF#000000##FFFFFF
##402CBB1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBF
Deuteranopia (green-blind)
#0042B8
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #402cbb;
/* rgb */ color: rgb(64, 44, 187);
/* oklch */ color: oklch(42.4% 0.209 279.0);
Tailwind
colors: {
  custom: {
    50: '#8569d1',
    500: '#402cbb',
    950: '#000000',
  },
}
SCSS
$custom: #402cbb;
$custom-light: #8569d1;
$custom-dark: #000000;
JSON
{
  "hex": "#402cbb",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 187
  },
  "hsl": {
    "h": 248.392,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4236,
    "c": 0.209,
    "h": 279
  },
  "luminance": 0.06479
}

Semantic roles & 50–950 ramp

primary
#402CBB
secondary
#BFCA79
accent
#E543CE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0614
muted
#7D7A83

Preview Lab

Preview with #402CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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