#402EBB#402EBB

#402EBB is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.6% C 0.207 H 278.7°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#402EBB
RGBrgb(64, 46, 187)
HSLhsl(248, 61%, 46%)
HSVhsv(248, 75%, 73%)
CMYKcmyk(65.8%, 75.4%, 0%, 26.7%)
CIE-LABlab(30.95, 48.86, -70.89)
CIE-LCHlch(30.95, 86.10, 304.58°)
OKLaboklab(42.61% 0.0314 -0.2047)
OKLCHoklch(42.61% 0.207 278.7)
XYZxyz(12.0581, 6.6308, 47.6485)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EBB #A9BB2E
analogous
#2E62BB #402EBB #872EBB
triadic
#402EBB #BB402E #2EBB40
tetradic
#402EBB #BB2E62 #A9BB2E #2EBB87
square
#402EBB #BB2E62 #A9BB2E #2EBB87
split-complementary
#402EBB #BB872E #62BB2E
monochromatic
#1E1659 #2F228A #402EBB #6252D4 #8F83E0

Accessibility & contrast

On white

9.03
#402EBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#402EBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402EBB
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EBB#FFFFFF#000000##FFFFFF
##402EBB1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBF
Deuteranopia (green-blind)
#0043B8
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #402ebb;
/* rgb */ color: rgb(64, 46, 187);
/* oklch */ color: oklch(42.6% 0.207 278.7);
Tailwind
colors: {
  custom: {
    50: '#856ad1',
    500: '#402ebb',
    950: '#000000',
  },
}
SCSS
$custom: #402ebb;
$custom-light: #856ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#402ebb",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 187
  },
  "hsl": {
    "h": 247.66,
    "s": 60.515,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42615,
    "c": 0.20711,
    "h": 278.7
  },
  "luminance": 0.06632
}

Semantic roles & 50–950 ramp

primary
#402EBB
secondary
#C0CA7B
accent
#E444CF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0714
muted
#7D7A83

Preview Lab

Preview with #402EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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