#402ABC#402ABC

#402ABC is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.2% C 0.212 H 279.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#402ABC
RGBrgb(64, 42, 188)
HSLhsl(249, 63%, 45%)
HSVhsv(249, 78%, 74%)
CMYKcmyk(66%, 77.7%, 0%, 26.3%)
CIE-LABlab(30.34, 51.20, -72.49)
CIE-LCHlch(30.34, 88.75, 305.23°)
OKLaboklab(42.22% 0.0334 -0.2093)
OKLCHoklch(42.22% 0.212 279.1)
XYZxyz(12.0165, 6.3758, 48.1646)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402ABC #A6BC2A
analogous
#2A5DBC #402ABC #892ABC
triadic
#402ABC #BC402A #2ABC40
tetradic
#402ABC #BC2A5D #A6BC2A #2ABC89
square
#402ABC #BC2A5D #A6BC2A #2ABC89
split-complementary
#402ABC #BC892A #5DBC2A
monochromatic
#1E1458 #2F1F8A #402ABC #614CD7 #8D7EE2

Accessibility & contrast

On white

9.23
#402ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#402ABC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402ABC
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402ABC#FFFFFF#000000##FFFFFF
##402ABC1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0042B9
Tritanopia (blue-blind)
#005572
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #402abc;
/* rgb */ color: rgb(64, 42, 188);
/* oklch */ color: oklch(42.2% 0.212 279.1);
Tailwind
colors: {
  custom: {
    50: '#8667d2',
    500: '#402abc',
    950: '#000000',
  },
}
SCSS
$custom: #402abc;
$custom-light: #8667d2;
$custom-dark: #000000;
JSON
{
  "hex": "#402abc",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 249.041,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42218,
    "c": 0.21198,
    "h": 279.1
  },
  "luminance": 0.06377
}

Semantic roles & 50–950 ramp

primary
#402ABC
secondary
#BECB77
accent
#E741CE
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #402ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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