#402EB6#402EB6

#402EB6 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.1% C 0.201 H 279.3°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#402EB6
RGBrgb(64, 46, 182)
HSLhsl(248, 60%, 45%)
HSVhsv(248, 75%, 71%)
CMYKcmyk(64.8%, 74.7%, 0%, 28.6%)
CIE-LABlab(30.45, 47.32, -68.76)
CIE-LCHlch(30.45, 83.46, 304.53°)
OKLaboklab(42.11% 0.0325 -0.1985)
OKLCHoklch(42.11% 0.201 279.3)
XYZxyz(11.5321, 6.4205, 44.8785)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EB6 #A4B62E
analogous
#2E60B6 #402EB6 #842EB6
triadic
#402EB6 #B6402E #2EB640
tetradic
#402EB6 #B62E60 #A4B62E #2EB684
square
#402EB6 #B62E60 #A4B62E #2EB684
split-complementary
#402EB6 #B6842E #60B62E
monochromatic
#1E1554 #2F2285 #402EB6 #604FD2 #8C80DF

Accessibility & contrast

On white

9.19
#402EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402EB6
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EB6#FFFFFF#000000##FFFFFF
##402EB61.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBA
Deuteranopia (green-blind)
#0042B4
Tritanopia (blue-blind)
#005570
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #402eb6;
/* rgb */ color: rgb(64, 46, 182);
/* oklch */ color: oklch(42.1% 0.201 279.3);
Tailwind
colors: {
  custom: {
    50: '#8469cd',
    500: '#402eb6',
    950: '#000000',
  },
}
SCSS
$custom: #402eb6;
$custom-light: #8469cd;
$custom-dark: #000000;
JSON
{
  "hex": "#402eb6",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 247.941,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42111,
    "c": 0.20114,
    "h": 279.3
  },
  "luminance": 0.06421
}

Semantic roles & 50–950 ramp

primary
#402EB6
secondary
#BDC878
accent
#E345CE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #402EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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