#402FAE#402FAE

#402FAE is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.5% C 0.190 H 280.2°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#402FAE
RGBrgb(64, 47, 174)
HSLhsl(248, 57%, 43%)
HSVhsv(248, 73%, 68%)
CMYKcmyk(63.2%, 73%, 0%, 31.8%)
CIE-LABlab(29.86, 44.28, -64.96)
CIE-LCHlch(29.86, 78.61, 304.28°)
OKLaboklab(41.46% 0.0336 -0.1874)
OKLCHoklch(41.46% 0.19 280.2)
XYZxyz(10.7684, 6.1782, 40.6612)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402FAE #9DAE2F
analogous
#2F5EAE #402FAE #7F2FAE
triadic
#402FAE #AE402F #2FAE40
tetradic
#402FAE #AE2F5E #9DAE2F #2FAE7F
square
#402FAE #AE2F5E #9DAE2F #2FAE7F
split-complementary
#402FAE #AE7F2F #5EAE2F
monochromatic
#1D154E #2E227E #402FAE #5D4CCF #897CDC

Accessibility & contrast

On white

9.39
#402FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#402FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402FAE
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402FAE#FFFFFF#000000##FFFFFF
##402FAE1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0041AC
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #402fae;
/* rgb */ color: rgb(64, 47, 174);
/* oklch */ color: oklch(41.5% 0.190 280.2);
Tailwind
colors: {
  custom: {
    50: '#836ac7',
    500: '#402fae',
    950: '#000000',
  },
}
SCSS
$custom: #402fae;
$custom-light: #836ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#402fae",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 248.031,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41455,
    "c": 0.1904,
    "h": 280.2
  },
  "luminance": 0.06179
}

Semantic roles & 50–950 ramp

primary
#402FAE
secondary
#B9C475
accent
#E147CC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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