#402EA0#402EA0

#402EA0 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.174 H 282.3°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#402EA0
RGBrgb(64, 46, 160)
HSLhsl(249, 55%, 40%)
HSVhsv(249, 71%, 63%)
CMYKcmyk(60%, 71.2%, 0%, 37.3%)
CIE-LABlab(28.33, 40.43, -59.03)
CIE-LCHlch(28.33, 71.54, 304.41°)
OKLaboklab(39.97% 0.0372 -0.17)
OKLCHoklch(39.97% 0.174 282.3)
XYZxyz(9.4345, 5.5814, 33.8311)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EA0 #8EA02E
analogous
#2E55A0 #402EA0 #792EA0
triadic
#402EA0 #A0402E #2EA040
tetradic
#402EA0 #A02E55 #8EA02E #2EA079
square
#402EA0 #A02E55 #8EA02E #2EA079
split-complementary
#402EA0 #A0792E #55A02E
monochromatic
#1A1341 #2D2070 #402EA0 #5842C9 #8272D6

Accessibility & contrast

On white

9.92
#402EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#402EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402EA0
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EA0#FFFFFF#000000##FFFFFF
##402EA01.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A3
Deuteranopia (green-blind)
#003F9E
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #402ea0;
/* rgb */ color: rgb(64, 46, 160);
/* oklch */ color: oklch(40.0% 0.174 282.3);
Tailwind
colors: {
  custom: {
    50: '#8069bd',
    500: '#402ea0',
    950: '#000000',
  },
}
SCSS
$custom: #402ea0;
$custom-light: #8069bd;
$custom-dark: #000000;
JSON
{
  "hex": "#402ea0",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 249.474,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39965,
    "c": 0.17406,
    "h": 282.3
  },
  "luminance": 0.05582
}

Semantic roles & 50–950 ramp

primary
#402EA0
secondary
#B1BE6C
accent
#DF49C7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #402EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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