#402CAC#402CAC

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

Color values

HEX#402CAC
RGBrgb(64, 44, 172)
HSLhsl(249, 59%, 42%)
HSVhsv(249, 74%, 67%)
CMYKcmyk(62.8%, 74.4%, 0%, 32.5%)
CIE-LABlab(29.08, 45.29, -65.04)
CIE-LCHlch(29.08, 79.26, 304.85°)
OKLaboklab(40.85% 0.0361 -0.1876)
OKLCHoklch(40.85% 0.191 280.9)
XYZxyz(10.4591, 5.8691, 39.6034)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402CAC #98AC2C
analogous
#2C58AC #402CAC #802CAC
triadic
#402CAC #AC402C #2CAC40
tetradic
#402CAC #AC2C58 #98AC2C #2CAC80
square
#402CAC #AC2C58 #98AC2C #2CAC80
split-complementary
#402CAC #AC802C #58AC2C
monochromatic
#1C134B #2E207B #402CAC #5B46D0 #8676DC

Accessibility & contrast

On white

9.66
#402CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#402CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402CAC
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402CAC#FFFFFF#000000##FFFFFF
##402CAC1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#0040AA
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #402cac;
/* rgb */ color: rgb(64, 44, 172);
/* oklch */ color: oklch(40.8% 0.191 280.9);
Tailwind
colors: {
  custom: {
    50: '#8268c6',
    500: '#402cac',
    950: '#000000',
  },
}
SCSS
$custom: #402cac;
$custom-light: #8268c6;
$custom-dark: #000000;
JSON
{
  "hex": "#402cac",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 249.375,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40845,
    "c": 0.19108,
    "h": 280.9
  },
  "luminance": 0.0587
}

Semantic roles & 50–950 ramp

primary
#402CAC
secondary
#B7C470
accent
#E245CA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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