#402DB9#402DB9

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

Color values

HEX#402DB9
RGBrgb(64, 45, 185)
HSLhsl(248, 61%, 45%)
HSVhsv(248, 76%, 73%)
CMYKcmyk(65.4%, 75.7%, 0%, 27.5%)
CIE-LABlab(30.57, 48.77, -70.34)
CIE-LCHlch(30.57, 85.60, 304.73°)
OKLaboklab(42.28% 0.0324 -0.2031)
OKLCHoklch(42.28% 0.206 279.1)
XYZxyz(11.8069, 6.4686, 46.5159)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402DB9 #A6B92D
analogous
#2D60B9 #402DB9 #862DB9
triadic
#402DB9 #B9402D #2DB940
tetradic
#402DB9 #B92D60 #A6B92D #2DB986
square
#402DB9 #B92D60 #A6B92D #2DB986
split-complementary
#402DB9 #B9862D #60B92D
monochromatic
#1E1557 #2F2188 #402DB9 #614FD4 #8D80E0

Accessibility & contrast

On white

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

On black

2.29
#402DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##402DB9#FFFFFF#000000##FFFFFF
##402DB91.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBD
Deuteranopia (green-blind)
#0042B6
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #402db9;
/* rgb */ color: rgb(64, 45, 185);
/* oklch */ color: oklch(42.3% 0.206 279.1);
Tailwind
colors: {
  custom: {
    50: '#8569cf',
    500: '#402db9',
    950: '#000000',
  },
}
SCSS
$custom: #402db9;
$custom-light: #8569cf;
$custom-dark: #000000;
JSON
{
  "hex": "#402db9",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 248.143,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42283,
    "c": 0.20568,
    "h": 279.1
  },
  "luminance": 0.0647
}

Semantic roles & 50–950 ramp

primary
#402DB9
secondary
#BEC979
accent
#E444CE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #402DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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