#402DB5#402DB5

#402DB5 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.9% C 0.201 H 279.6°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#402DB5
RGBrgb(64, 45, 181)
HSLhsl(248, 60%, 44%)
HSVhsv(248, 75%, 71%)
CMYKcmyk(64.6%, 75.1%, 0%, 29%)
CIE-LABlab(30.16, 47.54, -68.64)
CIE-LCHlch(30.16, 83.49, 304.71°)
OKLaboklab(41.88% 0.0334 -0.1981)
OKLCHoklch(41.88% 0.201 279.6)
XYZxyz(11.3906, 6.3020, 44.3233)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402DB5 #A2B52D
analogous
#2D5EB5 #402DB5 #842DB5
triadic
#402DB5 #B5402D #2DB540
tetradic
#402DB5 #B52D5E #A2B52D #2DB584
square
#402DB5 #B52D5E #A2B52D #2DB584
split-complementary
#402DB5 #B5842D #5EB52D
monochromatic
#1D1553 #2F2184 #402DB5 #5F4DD3 #8B7EDF

Accessibility & contrast

On white

9.29
#402DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#402DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402DB5
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402DB5#FFFFFF#000000##FFFFFF
##402DB51.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#0042B3
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #402db5;
/* rgb */ color: rgb(64, 45, 181);
/* oklch */ color: oklch(41.9% 0.201 279.6);
Tailwind
colors: {
  custom: {
    50: '#8469cc',
    500: '#402db5',
    950: '#000000',
  },
}
SCSS
$custom: #402db5;
$custom-light: #8469cc;
$custom-dark: #000000;
JSON
{
  "hex": "#402db5",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 248.382,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41878,
    "c": 0.20092,
    "h": 279.6
  },
  "luminance": 0.06303
}

Semantic roles & 50–950 ramp

primary
#402DB5
secondary
#BCC776
accent
#E344CD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #402DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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