#402DC1#402DC1

#402DC1 is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.1% C 0.215 H 278.1°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#402DC1
RGBrgb(64, 45, 193)
HSLhsl(248, 62%, 47%)
HSVhsv(248, 77%, 76%)
CMYKcmyk(66.8%, 76.7%, 0%, 24.3%)
CIE-LABlab(31.38, 51.21, -73.72)
CIE-LCHlch(31.38, 89.76, 304.79°)
OKLaboklab(43.1% 0.0305 -0.2129)
OKLCHoklch(43.1% 0.215 278.1)
XYZxyz(12.6753, 6.8159, 51.0894)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402DC1 #AEC12D
analogous
#2D64C1 #402DC1 #8A2DC1
triadic
#402DC1 #C1402D #2DC140
tetradic
#402DC1 #C12D64 #AEC12D #2DC18A
square
#402DC1 #C12D64 #AEC12D #2DC18A
split-complementary
#402DC1 #C18A2D #64C12D
monochromatic
#1F165E #30218F #402DC1 #6554D7 #9286E3

Accessibility & contrast

On white

8.89
#402DC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#402DC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402DC1
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402DC1#FFFFFF#000000##FFFFFF
##402DC11.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C5
Deuteranopia (green-blind)
#0044BE
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #402dc1;
/* rgb */ color: rgb(64, 45, 193);
/* oklch */ color: oklch(43.1% 0.215 278.1);
Tailwind
colors: {
  custom: {
    50: '#8769d5',
    500: '#402dc1',
    950: '#000000',
  },
}
SCSS
$custom: #402dc1;
$custom-light: #8769d5;
$custom-dark: #000000;
JSON
{
  "hex": "#402dc1",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 193
  },
  "hsl": {
    "h": 247.703,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.43102,
    "c": 0.21511,
    "h": 278.1
  },
  "luminance": 0.06817
}

Semantic roles & 50–950 ramp

primary
#402DC1
secondary
#C2CC7E
accent
#E543D0
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #402DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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