#402BBD#402BBD

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

Color values

HEX#402BBD
RGBrgb(64, 43, 189)
HSLhsl(249, 63%, 45%)
HSVhsv(249, 77%, 74%)
CMYKcmyk(66.1%, 77.2%, 0%, 25.9%)
CIE-LABlab(30.62, 51.00, -72.62)
CIE-LCHlch(30.62, 88.74, 305.08°)
OKLaboklab(42.44% 0.0326 -0.2097)
OKLCHoklch(42.44% 0.212 278.8)
XYZxyz(12.1606, 6.4909, 48.7463)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BBD #A8BD2B
analogous
#2B5FBD #402BBD #892BBD
triadic
#402BBD #BD402B #2BBD40
tetradic
#402BBD #BD2B5F #A8BD2B #2BBD89
square
#402BBD #BD2B5F #A8BD2B #2BBD89
split-complementary
#402BBD #BD892B #5FBD2B
monochromatic
#1E1459 #2F208B #402BBD #624ED7 #8E80E2

Accessibility & contrast

On white

9.14
#402BBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402BBD
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BBD#FFFFFF#000000##FFFFFF
##402BBD1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#0042BA
Tritanopia (blue-blind)
#005673
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #402bbd;
/* rgb */ color: rgb(64, 43, 189);
/* oklch */ color: oklch(42.4% 0.212 278.8);
Tailwind
colors: {
  custom: {
    50: '#8668d2',
    500: '#402bbd',
    950: '#000000',
  },
}
SCSS
$custom: #402bbd;
$custom-light: #8668d2;
$custom-dark: #000000;
JSON
{
  "hex": "#402bbd",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 189
  },
  "hsl": {
    "h": 248.63,
    "s": 62.931,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42442,
    "c": 0.21225,
    "h": 278.8
  },
  "luminance": 0.06492
}

Semantic roles & 50–950 ramp

primary
#402BBD
secondary
#BFCB79
accent
#E642CE
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #402BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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