#402AAF#402AAF

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

Color values

HEX#402AAF
RGBrgb(64, 42, 175)
HSLhsl(250, 61%, 43%)
HSVhsv(250, 76%, 69%)
CMYKcmyk(63.4%, 76%, 0%, 31.4%)
CIE-LABlab(29.01, 47.27, -66.96)
CIE-LCHlch(29.01, 81.96, 305.22°)
OKLaboklab(40.88% 0.0367 -0.1932)
OKLCHoklch(40.88% 0.197 280.8)
XYZxyz(10.6777, 5.8403, 41.1137)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402AAF #99AF2A
analogous
#2A56AF #402AAF #832AAF
triadic
#402AAF #AF402A #2AAF40
tetradic
#402AAF #AF2A56 #99AF2A #2AAF83
square
#402AAF #AF2A56 #99AF2A #2AAF83
split-complementary
#402AAF #AF832A #56AF2A
monochromatic
#1C124C #2E1E7E #402AAF #5C44D2 #8775DE

Accessibility & contrast

On white

9.69
#402AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402AAF
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402AAF#FFFFFF#000000##FFFFFF
##402AAF1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003FAD
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #402aaf;
/* rgb */ color: rgb(64, 42, 175);
/* oklch */ color: oklch(40.9% 0.197 280.8);
Tailwind
colors: {
  custom: {
    50: '#8367c8',
    500: '#402aaf',
    950: '#000000',
  },
}
SCSS
$custom: #402aaf;
$custom-light: #8367c8;
$custom-dark: #000000;
JSON
{
  "hex": "#402aaf",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 249.925,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40883,
    "c": 0.19668,
    "h": 280.8
  },
  "luminance": 0.05841
}

Semantic roles & 50–950 ramp

primary
#402AAF
secondary
#B7C66F
accent
#E443CA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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