#402BB0#402BB0

#402BB0 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.1% C 0.197 H 280.5°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#402BB0
RGBrgb(64, 43, 176)
HSLhsl(249, 61%, 43%)
HSVhsv(249, 76%, 69%)
CMYKcmyk(63.6%, 75.6%, 0%, 31%)
CIE-LABlab(29.29, 47.05, -67.09)
CIE-LCHlch(29.29, 81.95, 305.04°)
OKLaboklab(41.11% 0.0358 -0.1936)
OKLCHoklch(41.11% 0.197 280.5)
XYZxyz(10.8122, 5.9515, 41.6449)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BB0 #9BB02B
analogous
#2B58B0 #402BB0 #832BB0
triadic
#402BB0 #B0402B #2BB040
tetradic
#402BB0 #B02B58 #9BB02B #2BB083
square
#402BB0 #B02B58 #9BB02B #2BB083
split-complementary
#402BB0 #B0832B #58B02B
monochromatic
#1C134E #2E1F7F #402BB0 #5C46D2 #8878DE

Accessibility & contrast

On white

9.59
#402BB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#402BB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402BB0
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BB0#FFFFFF#000000##FFFFFF
##402BB01.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB4
Deuteranopia (green-blind)
#0040AE
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #402bb0;
/* rgb */ color: rgb(64, 43, 176);
/* oklch */ color: oklch(41.1% 0.197 280.5);
Tailwind
colors: {
  custom: {
    50: '#8367c9',
    500: '#402bb0',
    950: '#000000',
  },
}
SCSS
$custom: #402bb0;
$custom-light: #8367c9;
$custom-dark: #000000;
JSON
{
  "hex": "#402bb0",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 176
  },
  "hsl": {
    "h": 249.474,
    "s": 60.731,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41113,
    "c": 0.19689,
    "h": 280.5
  },
  "luminance": 0.05952
}

Semantic roles & 50–950 ramp

primary
#402BB0
secondary
#B8C671
accent
#E444CB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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