#402CA9#402CA9

#402CA9 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.187 H 281.3°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#402CA9
RGBrgb(64, 44, 169)
HSLhsl(250, 59%, 42%)
HSVhsv(250, 74%, 66%)
CMYKcmyk(62.1%, 74%, 0%, 33.7%)
CIE-LABlab(28.79, 44.36, -63.72)
CIE-LCHlch(28.79, 77.64, 304.84°)
OKLaboklab(40.55% 0.0368 -0.1838)
OKLCHoklch(40.55% 0.187 281.3)
XYZxyz(10.1742, 5.7552, 38.1031)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402CA9 #95A92C
analogous
#2C57A9 #402CA9 #7F2CA9
triadic
#402CA9 #A9402C #2CA940
tetradic
#402CA9 #A92C57 #95A92C #2CA97F
square
#402CA9 #A92C57 #95A92C #2CA97F
split-complementary
#402CA9 #A97F2C #57A92C
monochromatic
#1B1348 #2E1F78 #402CA9 #5A44CE #8574DB

Accessibility & contrast

On white

9.76
#402CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#402CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402CA9
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402CA9#FFFFFF#000000##FFFFFF
##402CA91.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003FA7
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #402ca9;
/* rgb */ color: rgb(64, 44, 169);
/* oklch */ color: oklch(40.5% 0.187 281.3);
Tailwind
colors: {
  custom: {
    50: '#8268c4',
    500: '#402ca9',
    950: '#000000',
  },
}
SCSS
$custom: #402ca9;
$custom-light: #8268c4;
$custom-dark: #000000;
JSON
{
  "hex": "#402ca9",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 249.6,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40549,
    "c": 0.18742,
    "h": 281.3
  },
  "luminance": 0.05756
}

Semantic roles & 50–950 ramp

primary
#402CA9
secondary
#B5C36E
accent
#E246C9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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