#402BAF#402BAF

#402BAF is a dark, vivid blue. Relative luminance 0.059; OKLCH L 41.0% C 0.196 H 280.6°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#402BAF
RGBrgb(64, 43, 175)
HSLhsl(250, 61%, 43%)
HSVhsv(250, 75%, 69%)
CMYKcmyk(63.4%, 75.4%, 0%, 31.4%)
CIE-LABlab(29.19, 46.75, -66.66)
CIE-LCHlch(29.19, 81.42, 305.04°)
OKLaboklab(41.01% 0.0361 -0.1923)
OKLCHoklch(41.01% 0.196 280.6)
XYZxyz(10.7136, 5.9121, 41.1257)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BAF #9AAF2B
analogous
#2B58AF #402BAF #822BAF
triadic
#402BAF #AF402B #2BAF40
tetradic
#402BAF #AF2B58 #9AAF2B #2BAF82
square
#402BAF #AF2B58 #9AAF2B #2BAF82
split-complementary
#402BAF #AF822B #58AF2B
monochromatic
#1C134D #2E1F7E #402BAF #5C46D1 #8777DE

Accessibility & contrast

On white

9.62
#402BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#402BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402BAF
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BAF#FFFFFF#000000##FFFFFF
##402BAF1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#0040AD
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #402baf;
/* rgb */ color: rgb(64, 43, 175);
/* oklch */ color: oklch(41.0% 0.196 280.6);
Tailwind
colors: {
  custom: {
    50: '#8367c8',
    500: '#402baf',
    950: '#000000',
  },
}
SCSS
$custom: #402baf;
$custom-light: #8367c8;
$custom-dark: #000000;
JSON
{
  "hex": "#402baf",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 249.545,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41012,
    "c": 0.19569,
    "h": 280.6
  },
  "luminance": 0.05913
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #402BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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