#402DBB#402DBB

#402DBB is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.5% C 0.208 H 278.8°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#402DBB
RGBrgb(64, 45, 187)
HSLhsl(248, 61%, 45%)
HSVhsv(248, 76%, 73%)
CMYKcmyk(65.8%, 75.9%, 0%, 26.7%)
CIE-LABlab(30.77, 49.38, -71.19)
CIE-LCHlch(30.77, 86.64, 304.75°)
OKLaboklab(42.49% 0.032 -0.2056)
OKLCHoklch(42.49% 0.208 278.8)
XYZxyz(12.0195, 6.5536, 47.6356)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402DBB #A8BB2D
analogous
#2D61BB #402DBB #872DBB
triadic
#402DBB #BB402D #2DBB40
tetradic
#402DBB #BB2D61 #A8BB2D #2DBB87
square
#402DBB #BB2D61 #A8BB2D #2DBB87
split-complementary
#402DBB #BB872D #61BB2D
monochromatic
#1E1558 #2F218A #402DBB #6250D5 #8E82E1

Accessibility & contrast

On white

9.09
#402DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#402DBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402DBB
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402DBB#FFFFFF#000000##FFFFFF
##402DBB1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402dbb;
/* rgb */ color: rgb(64, 45, 187);
/* oklch */ color: oklch(42.5% 0.208 278.8);
Tailwind
colors: {
  custom: {
    50: '#8569d1',
    500: '#402dbb',
    950: '#000000',
  },
}
SCSS
$custom: #402dbb;
$custom-light: #8569d1;
$custom-dark: #000000;
JSON
{
  "hex": "#402dbb",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 187
  },
  "hsl": {
    "h": 248.028,
    "s": 61.207,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42486,
    "c": 0.20806,
    "h": 278.8
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#402DBB
secondary
#BFCA7A
accent
#E443CF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0614
muted
#7D7A83

Preview Lab

Preview with #402DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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