#402BBF#402BBF

#402BBF is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.6% C 0.215 H 278.6°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#402BBF
RGBrgb(64, 43, 191)
HSLhsl(249, 63%, 46%)
HSVhsv(249, 77%, 75%)
CMYKcmyk(66.5%, 77.5%, 0%, 25.1%)
CIE-LABlab(30.83, 51.61, -73.46)
CIE-LCHlch(30.83, 89.77, 305.09°)
OKLaboklab(42.65% 0.0321 -0.2122)
OKLCHoklch(42.65% 0.215 278.6)
XYZxyz(12.3792, 6.5783, 49.8975)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BBF #AABF2B
analogous
#2B60BF #402BBF #8A2BBF
triadic
#402BBF #BF402B #2BBF40
tetradic
#402BBF #BF2B60 #AABF2B #2BBF8A
square
#402BBF #BF2B60 #AABF2B #2BBF8A
split-complementary
#402BBF #BF8A2B #60BF2B
monochromatic
#1F155B #2F208D #402BBF #6350D8 #8F82E3

Accessibility & contrast

On white

9.07
#402BBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#402BBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402BBF
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BBF#FFFFFF#000000##FFFFFF
##402BBF1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC3
Deuteranopia (green-blind)
#0043BC
Tritanopia (blue-blind)
#005774
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #402bbf;
/* rgb */ color: rgb(64, 43, 191);
/* oklch */ color: oklch(42.6% 0.215 278.6);
Tailwind
colors: {
  custom: {
    50: '#8668d4',
    500: '#402bbf',
    950: '#000000',
  },
}
SCSS
$custom: #402bbf;
$custom-light: #8668d4;
$custom-dark: #000000;
JSON
{
  "hex": "#402bbf",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 191
  },
  "hsl": {
    "h": 248.514,
    "s": 63.248,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4265,
    "c": 0.21458,
    "h": 278.6
  },
  "luminance": 0.06579
}

Semantic roles & 50–950 ramp

primary
#402BBF
secondary
#C0CC7A
accent
#E642CF
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #402BBF

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

Preview Lab → · Contrast checker → · Palette generator →

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