#402FBB#402FBB

#402FBB is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.7% C 0.206 H 278.6°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#402FBB
RGBrgb(64, 47, 187)
HSLhsl(247, 60%, 46%)
HSVhsv(247, 75%, 73%)
CMYKcmyk(65.8%, 74.9%, 0%, 26.7%)
CIE-LABlab(31.14, 48.33, -70.59)
CIE-LCHlch(31.14, 85.55, 304.40°)
OKLaboklab(42.75% 0.0308 -0.2038)
OKLCHoklch(42.75% 0.206 278.6)
XYZxyz(12.0976, 6.7099, 47.6617)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402FBB #AABB2F
analogous
#2F64BB #402FBB #862FBB
triadic
#402FBB #BB402F #2FBB40
tetradic
#402FBB #BB2F64 #AABB2F #2FBB86
square
#402FBB #BB2F64 #AABB2F #2FBB86
split-complementary
#402FBB #BB862F #64BB2F
monochromatic
#1F1659 #2F238A #402FBB #6353D4 #8F84E0

Accessibility & contrast

On white

8.97
#402FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#402FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402FBB
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402FBB#FFFFFF#000000##FFFFFF
##402FBB1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBF
Deuteranopia (green-blind)
#0044B8
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #402fbb;
/* rgb */ color: rgb(64, 47, 187);
/* oklch */ color: oklch(42.7% 0.206 278.6);
Tailwind
colors: {
  custom: {
    50: '#856ad1',
    500: '#402fbb',
    950: '#000000',
  },
}
SCSS
$custom: #402fbb;
$custom-light: #856ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#402fbb",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 247.286,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42746,
    "c": 0.20614,
    "h": 278.6
  },
  "luminance": 0.06711
}

Semantic roles & 50–950 ramp

primary
#402FBB
secondary
#C0C97C
accent
#E345D0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #402FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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