#402BD0#402BD0

#402BD0 is a dark, highly saturated blue. Relative luminance 0.074; OKLCH L 44.4% C 0.234 H 276.8°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#402BD0
RGBrgb(64, 43, 208)
HSLhsl(248, 66%, 49%)
HSVhsv(248, 79%, 82%)
CMYKcmyk(69.2%, 79.3%, 0%, 18.4%)
CIE-LABlab(32.64, 56.66, -80.41)
CIE-LCHlch(32.64, 98.37, 305.17°)
OKLaboklab(44.44% 0.0276 -0.2324)
OKLCHoklch(44.44% 0.234 276.8)
XYZxyz(14.3597, 7.3705, 60.3282)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BD0 #BBD02B
analogous
#2B69D0 #402BD0 #922BD0
triadic
#402BD0 #D0402B #2BD040
tetradic
#402BD0 #D02B69 #BBD02B #2BD092
square
#402BD0 #D02B69 #BBD02B #2BD092
split-complementary
#402BD0 #D0922B #69D02B
monochromatic
#21166B #30219D #402BD0 #6C5BDD #998EE8

Accessibility & contrast

On white

8.49
#402BD0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#402BD0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402BD0
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BD0#FFFFFF#000000##FFFFFF
##402BD01.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053D5
Deuteranopia (green-blind)
#0046CD
Tritanopia (blue-blind)
#005E7E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #402bd0;
/* rgb */ color: rgb(64, 43, 208);
/* oklch */ color: oklch(44.4% 0.234 276.8);
Tailwind
colors: {
  custom: {
    50: '#8a69e0',
    500: '#402bd0',
    950: '#000000',
  },
}
SCSS
$custom: #402bd0;
$custom-light: #8a69e0;
$custom-dark: #000000;
JSON
{
  "hex": "#402bd0",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 208
  },
  "hsl": {
    "h": 247.636,
    "s": 65.737,
    "l": 49.216
  },
  "oklch": {
    "l": 0.44444,
    "c": 0.23402,
    "h": 276.8
  },
  "luminance": 0.07372
}

Semantic roles & 50–950 ramp

primary
#402BD0
secondary
#C8D285
accent
#E93FD3
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #402BD0

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

Preview Lab → · Contrast checker → · Palette generator →

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