#402DBC#402DBC

#402DBC is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.6% C 0.209 H 278.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#402DBC
RGBrgb(64, 45, 188)
HSLhsl(248, 61%, 46%)
HSVhsv(248, 76%, 74%)
CMYKcmyk(66%, 76.1%, 0%, 26.3%)
CIE-LABlab(30.87, 49.69, -71.62)
CIE-LCHlch(30.87, 87.16, 304.75°)
OKLaboklab(42.59% 0.0317 -0.2068)
OKLCHoklch(42.59% 0.209 278.7)
XYZxyz(12.1269, 6.5966, 48.2014)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402DBC #A9BC2D
analogous
#2D61BC #402DBC #872DBC
triadic
#402DBC #BC402D #2DBC40
tetradic
#402DBC #BC2D61 #A9BC2D #2DBC87
square
#402DBC #BC2D61 #A9BC2D #2DBC87
split-complementary
#402DBC #BC872D #61BC2D
monochromatic
#1E1559 #2F218B #402DBC #6251D5 #8F82E1

Accessibility & contrast

On white

9.05
#402DBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#402DBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402DBC
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402DBC#FFFFFF#000000##FFFFFF
##402DBC1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0043B9
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #402dbc;
/* rgb */ color: rgb(64, 45, 188);
/* oklch */ color: oklch(42.6% 0.209 278.7);
Tailwind
colors: {
  custom: {
    50: '#8669d1',
    500: '#402dbc',
    950: '#000000',
  },
}
SCSS
$custom: #402dbc;
$custom-light: #8669d1;
$custom-dark: #000000;
JSON
{
  "hex": "#402dbc",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 188
  },
  "hsl": {
    "h": 247.972,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42588,
    "c": 0.20924,
    "h": 278.7
  },
  "luminance": 0.06598
}

Semantic roles & 50–950 ramp

primary
#402DBC
secondary
#C0CA7B
accent
#E443CF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0614
muted
#7D7A83

Preview Lab

Preview with #402DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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