#402E9D#402E9D

#402E9D is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.170 H 282.8°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#402E9D
RGBrgb(64, 46, 157)
HSLhsl(250, 55%, 40%)
HSVhsv(250, 71%, 62%)
CMYKcmyk(59.2%, 70.7%, 0%, 38.4%)
CIE-LABlab(28.05, 39.48, -57.66)
CIE-LCHlch(28.05, 69.88, 304.40°)
OKLaboklab(39.68% 0.0377 -0.166)
OKLCHoklch(39.68% 0.17 282.8)
XYZxyz(9.1753, 5.4777, 32.4656)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E9D #8B9D2E
analogous
#2E539D #402E9D #782E9D
triadic
#402E9D #9D402E #2E9D40
tetradic
#402E9D #9D2E53 #8B9D2E #2E9D78
square
#402E9D #9D2E53 #8B9D2E #2E9D78
split-complementary
#402E9D #9D782E #539D2E
monochromatic
#19123E #2D206E #402E9D #5741C7 #8170D5

Accessibility & contrast

On white

10.02
#402E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402E9D
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E9D#FFFFFF#000000##FFFFFF
##402E9D1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#074B62
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #402e9d;
/* rgb */ color: rgb(64, 46, 157);
/* oklch */ color: oklch(39.7% 0.170 282.8);
Tailwind
colors: {
  custom: {
    50: '#7f68bb',
    500: '#402e9d',
    950: '#000000',
  },
}
SCSS
$custom: #402e9d;
$custom-light: #7f68bb;
$custom-dark: #000000;
JSON
{
  "hex": "#402e9d",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 249.73,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39683,
    "c": 0.17026,
    "h": 282.8
  },
  "luminance": 0.05478
}

Semantic roles & 50–950 ramp

primary
#402E9D
secondary
#AFBD6A
accent
#DE4AC6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #402E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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