#402FBD#402FBD

#402FBD is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.9% C 0.209 H 278.4°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#402FBD
RGBrgb(64, 47, 189)
HSLhsl(247, 60%, 46%)
HSVhsv(247, 75%, 74%)
CMYKcmyk(66.1%, 75.1%, 0%, 25.9%)
CIE-LABlab(31.34, 48.95, -71.44)
CIE-LCHlch(31.34, 86.60, 304.42°)
OKLaboklab(42.95% 0.0303 -0.2063)
OKLCHoklch(42.95% 0.209 278.4)
XYZxyz(12.3132, 6.7961, 48.7971)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402FBD #ACBD2F
analogous
#2F65BD #402FBD #872FBD
triadic
#402FBD #BD402F #2FBD40
tetradic
#402FBD #BD2F65 #ACBD2F #2FBD87
square
#402FBD #BD2F65 #ACBD2F #2FBD87
split-complementary
#402FBD #BD872F #65BD2F
monochromatic
#1F175B #2F238C #402FBD #6455D5 #9186E1

Accessibility & contrast

On white

8.90
#402FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#402FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402FBD
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402FBD#FFFFFF#000000##FFFFFF
##402FBD1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC1
Deuteranopia (green-blind)
#0044BA
Tritanopia (blue-blind)
#005874
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #402fbd;
/* rgb */ color: rgb(64, 47, 189);
/* oklch */ color: oklch(42.9% 0.209 278.4);
Tailwind
colors: {
  custom: {
    50: '#866ad2',
    500: '#402fbd',
    950: '#000000',
  },
}
SCSS
$custom: #402fbd;
$custom-light: #866ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#402fbd",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 247.183,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.42948,
    "c": 0.20853,
    "h": 278.4
  },
  "luminance": 0.06797
}

Semantic roles & 50–950 ramp

primary
#402FBD
secondary
#C1CA7E
accent
#E344D0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0714
muted
#7D7A83

Preview Lab

Preview with #402FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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