#402AC0#402AC0

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

Color values

HEX#402AC0
RGBrgb(64, 42, 192)
HSLhsl(249, 64%, 46%)
HSVhsv(249, 78%, 75%)
CMYKcmyk(66.7%, 78.1%, 0%, 24.7%)
CIE-LABlab(30.76, 52.40, -74.16)
CIE-LCHlch(30.76, 90.80, 305.24°)
OKLaboklab(42.64% 0.0323 -0.2142)
OKLCHoklch(42.64% 0.217 278.6)
XYZxyz(12.4537, 6.5506, 50.4671)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402AC0 #AAC02A
analogous
#2A5FC0 #402AC0 #8B2AC0
triadic
#402AC0 #C0402A #2AC040
tetradic
#402AC0 #C02A5F #AAC02A #2AC08B
square
#402AC0 #C02A5F #AAC02A #2AC08B
split-complementary
#402AC0 #C08B2A #5FC02A
monochromatic
#1F145C #2F1F8E #402AC0 #634FD8 #8F81E3

Accessibility & contrast

On white

9.09
#402AC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#402AC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402AC0
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402AC0#FFFFFF#000000##FFFFFF
##402AC01.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC4
Deuteranopia (green-blind)
#0042BD
Tritanopia (blue-blind)
#005775
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #402ac0;
/* rgb */ color: rgb(64, 42, 192);
/* oklch */ color: oklch(42.6% 0.217 278.6);
Tailwind
colors: {
  custom: {
    50: '#8768d4',
    500: '#402ac0',
    950: '#000000',
  },
}
SCSS
$custom: #402ac0;
$custom-light: #8768d4;
$custom-dark: #000000;
JSON
{
  "hex": "#402ac0",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 192
  },
  "hsl": {
    "h": 248.8,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42635,
    "c": 0.21661,
    "h": 278.6
  },
  "luminance": 0.06552
}

Semantic roles & 50–950 ramp

primary
#402AC0
secondary
#C0CC7A
accent
#E741CF
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #402AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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