#402FC1#402FC1

#402FC1 is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.4% C 0.213 H 277.9°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#402FC1
RGBrgb(64, 47, 193)
HSLhsl(247, 61%, 47%)
HSVhsv(247, 76%, 76%)
CMYKcmyk(66.8%, 75.6%, 0%, 24.3%)
CIE-LABlab(31.74, 50.18, -73.12)
CIE-LCHlch(31.74, 88.69, 304.46°)
OKLaboklab(43.35% 0.0294 -0.2112)
OKLCHoklch(43.35% 0.213 277.9)
XYZxyz(12.7534, 6.9722, 51.1154)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402FC1 #B0C12F
analogous
#2F67C1 #402FC1 #892FC1
triadic
#402FC1 #C1402F #2FC140
tetradic
#402FC1 #C12F67 #B0C12F #2FC189
square
#402FC1 #C12F67 #B0C12F #2FC189
split-complementary
#402FC1 #C1892F #67C12F
monochromatic
#1F175F #302390 #402FC1 #6657D6 #9388E2

Accessibility & contrast

On white

8.77
#402FC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#402FC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402FC1
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402FC1#FFFFFF#000000##FFFFFF
##402FC11.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C5
Deuteranopia (green-blind)
#0045BE
Tritanopia (blue-blind)
#005A76
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #402fc1;
/* rgb */ color: rgb(64, 47, 193);
/* oklch */ color: oklch(43.4% 0.213 277.9);
Tailwind
colors: {
  custom: {
    50: '#866bd5',
    500: '#402fc1',
    950: '#000000',
  },
}
SCSS
$custom: #402fc1;
$custom-light: #866bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#402fc1",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 193
  },
  "hsl": {
    "h": 246.986,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.43354,
    "c": 0.21327,
    "h": 277.9
  },
  "luminance": 0.06973
}

Semantic roles & 50–950 ramp

primary
#402FC1
secondary
#C3CC80
accent
#E444D1
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #402FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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