#402BAE#402BAE

#402BAE is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.9% C 0.194 H 280.8°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#402BAE
RGBrgb(64, 43, 174)
HSLhsl(250, 60%, 43%)
HSVhsv(250, 75%, 68%)
CMYKcmyk(63.2%, 75.3%, 0%, 31.8%)
CIE-LABlab(29.09, 46.44, -66.22)
CIE-LCHlch(29.09, 80.88, 305.04°)
OKLaboklab(40.91% 0.0363 -0.1911)
OKLCHoklch(40.91% 0.194 280.8)
XYZxyz(10.6158, 5.8729, 40.6104)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BAE #99AE2B
analogous
#2B58AE #402BAE #812BAE
triadic
#402BAE #AE402B #2BAE40
tetradic
#402BAE #AE2B58 #99AE2B #2BAE81
square
#402BAE #AE2B58 #99AE2B #2BAE81
split-complementary
#402BAE #AE812B #58AE2B
monochromatic
#1C134C #2E1F7D #402BAE #5C45D1 #8776DD

Accessibility & contrast

On white

9.66
#402BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#402BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402BAE
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BAE#FFFFFF#000000##FFFFFF
##402BAE1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#0040AC
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #402bae;
/* rgb */ color: rgb(64, 43, 174);
/* oklch */ color: oklch(40.9% 0.194 280.8);
Tailwind
colors: {
  custom: {
    50: '#8367c7',
    500: '#402bae',
    950: '#000000',
  },
}
SCSS
$custom: #402bae;
$custom-light: #8367c7;
$custom-dark: #000000;
JSON
{
  "hex": "#402bae",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 249.618,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40912,
    "c": 0.19449,
    "h": 280.8
  },
  "luminance": 0.05874
}

Semantic roles & 50–950 ramp

primary
#402BAE
secondary
#B7C570
accent
#E444CA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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