#402EAA#402EAA

#402EAA is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.9% C 0.187 H 280.9°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#402EAA
RGBrgb(64, 46, 170)
HSLhsl(249, 57%, 42%)
HSVhsv(249, 73%, 67%)
CMYKcmyk(62.4%, 72.9%, 0%, 33.3%)
CIE-LABlab(29.27, 43.58, -63.52)
CIE-LCHlch(29.27, 77.03, 304.45°)
OKLaboklab(40.92% 0.0352 -0.1832)
OKLCHoklch(40.92% 0.187 280.9)
XYZxyz(10.3448, 5.9455, 38.6249)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EAA #98AA2E
analogous
#2E5AAA #402EAA #7E2EAA
triadic
#402EAA #AA402E #2EAA40
tetradic
#402EAA #AA2E5A #98AA2E #2EAA7E
square
#402EAA #AA2E5A #98AA2E #2EAA7E
split-complementary
#402EAA #AA7E2E #5AAA2E
monochromatic
#1C144A #2E217A #402EAA #5B48CD #8678DA

Accessibility & contrast

On white

9.59
#402EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#402EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402EAA
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EAA#FFFFFF#000000##FFFFFF
##402EAA1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0040A8
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #402eaa;
/* rgb */ color: rgb(64, 46, 170);
/* oklch */ color: oklch(40.9% 0.187 280.9);
Tailwind
colors: {
  custom: {
    50: '#8269c4',
    500: '#402eaa',
    950: '#000000',
  },
}
SCSS
$custom: #402eaa;
$custom-light: #8269c4;
$custom-dark: #000000;
JSON
{
  "hex": "#402eaa",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 248.71,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40925,
    "c": 0.18653,
    "h": 280.9
  },
  "luminance": 0.05946
}

Semantic roles & 50–950 ramp

primary
#402EAA
secondary
#B7C371
accent
#E147CA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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