#402DC6#402DC6

#402DC6 is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.6% C 0.221 H 277.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#402DC6
RGBrgb(64, 45, 198)
HSLhsl(247, 63%, 48%)
HSVhsv(247, 77%, 78%)
CMYKcmyk(67.7%, 77.3%, 0%, 22.4%)
CIE-LABlab(31.90, 52.72, -75.79)
CIE-LCHlch(31.90, 92.33, 304.82°)
OKLaboklab(43.62% 0.0293 -0.219)
OKLCHoklch(43.62% 0.221 277.6)
XYZxyz(13.2425, 7.0428, 54.0767)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402DC6 #B3C62D
analogous
#2D66C6 #402DC6 #8C2DC6
triadic
#402DC6 #C6402D #2DC640
tetradic
#402DC6 #C62D66 #B3C62D #2DC68C
square
#402DC6 #C62D66 #B3C62D #2DC68C
split-complementary
#402DC6 #C68C2D #66C62D
monochromatic
#201662 #302294 #402DC6 #6757D9 #9489E4

Accessibility & contrast

On white

8.72
#402DC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#402DC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402DC6
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402DC6#FFFFFF#000000##FFFFFF
##402DC61.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CA
Deuteranopia (green-blind)
#0045C3
Tritanopia (blue-blind)
#005B79
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #402dc6;
/* rgb */ color: rgb(64, 45, 198);
/* oklch */ color: oklch(43.6% 0.221 277.6);
Tailwind
colors: {
  custom: {
    50: '#886ad9',
    500: '#402dc6',
    950: '#000000',
  },
}
SCSS
$custom: #402dc6;
$custom-light: #886ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#402dc6",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 198
  },
  "hsl": {
    "h": 247.451,
    "s": 62.963,
    "l": 47.647
  },
  "oklch": {
    "l": 0.43621,
    "c": 0.22092,
    "h": 277.6
  },
  "luminance": 0.07044
}

Semantic roles & 50–950 ramp

primary
#402DC6
secondary
#C4CE81
accent
#E642D2
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #402DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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