#402DAF#402DAF

#402DAF is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.3% C 0.194 H 280.3°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#402DAF
RGBrgb(64, 45, 175)
HSLhsl(249, 59%, 43%)
HSVhsv(249, 74%, 69%)
CMYKcmyk(63.4%, 74.3%, 0%, 31.4%)
CIE-LABlab(29.57, 45.68, -66.04)
CIE-LCHlch(29.57, 80.30, 304.67°)
OKLaboklab(41.28% 0.0348 -0.1905)
OKLCHoklch(41.28% 0.194 280.3)
XYZxyz(10.7881, 6.0611, 41.1505)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402DAF #9CAF2D
analogous
#2D5BAF #402DAF #812DAF
triadic
#402DAF #AF402D #2DAF40
tetradic
#402DAF #AF2D5B #9CAF2D #2DAF81
square
#402DAF #AF2D5B #9CAF2D #2DAF81
split-complementary
#402DAF #AF812D #5BAF2D
monochromatic
#1C144E #2E207E #402DAF #5D49D0 #887ADD

Accessibility & contrast

On white

9.49
#402DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#402DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402DAF
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402DAF#FFFFFF#000000##FFFFFF
##402DAF1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402daf;
/* rgb */ color: rgb(64, 45, 175);
/* oklch */ color: oklch(41.3% 0.194 280.3);
Tailwind
colors: {
  custom: {
    50: '#8369c8',
    500: '#402daf',
    950: '#000000',
  },
}
SCSS
$custom: #402daf;
$custom-light: #8369c8;
$custom-dark: #000000;
JSON
{
  "hex": "#402daf",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 248.769,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41278,
    "c": 0.19369,
    "h": 280.3
  },
  "luminance": 0.06062
}

Semantic roles & 50–950 ramp

primary
#402DAF
secondary
#B9C573
accent
#E246CB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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