#402EB8#402EB8

#402EB8 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.3% C 0.204 H 279.1°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#402EB8
RGBrgb(64, 46, 184)
HSLhsl(248, 60%, 45%)
HSVhsv(248, 75%, 72%)
CMYKcmyk(65.2%, 75%, 0%, 27.8%)
CIE-LABlab(30.65, 47.94, -69.61)
CIE-LCHlch(30.65, 84.52, 304.55°)
OKLaboklab(42.31% 0.0321 -0.201)
OKLCHoklch(42.31% 0.204 279.1)
XYZxyz(11.7403, 6.5037, 45.9748)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EB8 #A6B82E
analogous
#2E61B8 #402EB8 #852EB8
triadic
#402EB8 #B8402E #2EB840
tetradic
#402EB8 #B82E61 #A6B82E #2EB885
square
#402EB8 #B82E61 #A6B82E #2EB885
split-complementary
#402EB8 #B8852E #61B82E
monochromatic
#1E1656 #2F2287 #402EB8 #6150D3 #8D81DF

Accessibility & contrast

On white

9.13
#402EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402EB8
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EB8#FFFFFF#000000##FFFFFF
##402EB81.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBC
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #402eb8;
/* rgb */ color: rgb(64, 46, 184);
/* oklch */ color: oklch(42.3% 0.204 279.1);
Tailwind
colors: {
  custom: {
    50: '#856acf',
    500: '#402eb8',
    950: '#000000',
  },
}
SCSS
$custom: #402eb8;
$custom-light: #856acf;
$custom-dark: #000000;
JSON
{
  "hex": "#402eb8",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 247.826,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42312,
    "c": 0.20353,
    "h": 279.1
  },
  "luminance": 0.06505
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #402EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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