#402DBE#402DBE

#402DBE is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.8% C 0.212 H 278.5°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#402DBE
RGBrgb(64, 45, 190)
HSLhsl(248, 62%, 46%)
HSVhsv(248, 76%, 75%)
CMYKcmyk(66.3%, 76.3%, 0%, 25.5%)
CIE-LABlab(31.07, 50.30, -72.46)
CIE-LCHlch(31.07, 88.21, 304.77°)
OKLaboklab(42.79% 0.0312 -0.2093)
OKLCHoklch(42.79% 0.212 278.5)
XYZxyz(12.3440, 6.6834, 49.3447)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402DBE #ABBE2D
analogous
#2D62BE #402DBE #882DBE
triadic
#402DBE #BE402D #2DBE40
tetradic
#402DBE #BE2D62 #ABBE2D #2DBE88
square
#402DBE #BE2D62 #ABBE2D #2DBE88
split-complementary
#402DBE #BE882D #62BE2D
monochromatic
#1F165B #2F218D #402DBE #6352D6 #9084E2

Accessibility & contrast

On white

8.99
#402DBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#402DBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402DBE
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402DBE#FFFFFF#000000##FFFFFF
##402DBE1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC2
Deuteranopia (green-blind)
#0043BB
Tritanopia (blue-blind)
#005774
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #402dbe;
/* rgb */ color: rgb(64, 45, 190);
/* oklch */ color: oklch(42.8% 0.212 278.5);
Tailwind
colors: {
  custom: {
    50: '#8669d3',
    500: '#402dbe',
    950: '#000000',
  },
}
SCSS
$custom: #402dbe;
$custom-light: #8669d3;
$custom-dark: #000000;
JSON
{
  "hex": "#402dbe",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 190
  },
  "hsl": {
    "h": 247.862,
    "s": 61.702,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42793,
    "c": 0.2116,
    "h": 278.5
  },
  "luminance": 0.06684
}

Semantic roles & 50–950 ramp

primary
#402DBE
secondary
#C1CB7C
accent
#E543D0
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #402DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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