#402DA0#402DA0

#402DA0 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.175 H 282.5°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#402DA0
RGBrgb(64, 45, 160)
HSLhsl(250, 56%, 40%)
HSVhsv(250, 72%, 63%)
CMYKcmyk(60%, 71.9%, 0%, 37.3%)
CIE-LABlab(28.13, 40.99, -59.37)
CIE-LCHlch(28.13, 72.14, 304.63°)
OKLaboklab(39.82% 0.038 -0.171)
OKLCHoklch(39.82% 0.175 282.5)
XYZxyz(9.3959, 5.5042, 33.8182)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402DA0 #8DA02D
analogous
#2D53A0 #402DA0 #792DA0
triadic
#402DA0 #A0402D #2DA040
tetradic
#402DA0 #A02D53 #8DA02D #2DA079
square
#402DA0 #A02D53 #8DA02D #2DA079
split-complementary
#402DA0 #A0792D #53A02D
monochromatic
#1A1240 #2D2070 #402DA0 #5741C9 #8170D7

Accessibility & contrast

On white

10.00
#402DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#402DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402DA0
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402DA0#FFFFFF#000000##FFFFFF
##402DA01.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#003E9E
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #402da0;
/* rgb */ color: rgb(64, 45, 160);
/* oklch */ color: oklch(39.8% 0.175 282.5);
Tailwind
colors: {
  custom: {
    50: '#8068bd',
    500: '#402da0',
    950: '#000000',
  },
}
SCSS
$custom: #402da0;
$custom-light: #8068bd;
$custom-dark: #000000;
JSON
{
  "hex": "#402da0",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 160
  },
  "hsl": {
    "h": 249.913,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39819,
    "c": 0.17519,
    "h": 282.5
  },
  "luminance": 0.05505
}

Semantic roles & 50–950 ramp

primary
#402DA0
secondary
#B0BE6B
accent
#DF48C6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #402DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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