#402DC0#402DC0

#402DC0 is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.0% C 0.214 H 278.3°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#402DC0
RGBrgb(64, 45, 192)
HSLhsl(248, 62%, 46%)
HSVhsv(248, 77%, 75%)
CMYKcmyk(66.7%, 76.6%, 0%, 24.7%)
CIE-LABlab(31.28, 50.91, -73.30)
CIE-LCHlch(31.28, 89.24, 304.78°)
OKLaboklab(43% 0.0307 -0.2117)
OKLCHoklch(43% 0.214 278.3)
XYZxyz(12.5641, 6.7715, 50.5039)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402DC0 #ADC02D
analogous
#2D64C0 #402DC0 #8A2DC0
triadic
#402DC0 #C0402D #2DC040
tetradic
#402DC0 #C02D64 #ADC02D #2DC08A
square
#402DC0 #C02D64 #ADC02D #2DC08A
split-complementary
#402DC0 #C08A2D #64C02D
monochromatic
#1F165D #2F218E #402DC0 #6453D7 #9185E2

Accessibility & contrast

On white

8.92
#402DC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#402DC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402DC0
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402DC0#FFFFFF#000000##FFFFFF
##402DC01.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC4
Deuteranopia (green-blind)
#0044BD
Tritanopia (blue-blind)
#005875
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #402dc0;
/* rgb */ color: rgb(64, 45, 192);
/* oklch */ color: oklch(43.0% 0.214 278.3);
Tailwind
colors: {
  custom: {
    50: '#8669d4',
    500: '#402dc0',
    950: '#000000',
  },
}
SCSS
$custom: #402dc0;
$custom-light: #8669d4;
$custom-dark: #000000;
JSON
{
  "hex": "#402dc0",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 192
  },
  "hsl": {
    "h": 247.755,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.42999,
    "c": 0.21394,
    "h": 278.3
  },
  "luminance": 0.06773
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #402DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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