#402FBF#402FBF

#402FBF is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.2% C 0.211 H 278.1°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#402FBF
RGBrgb(64, 47, 191)
HSLhsl(247, 61%, 47%)
HSVhsv(247, 75%, 75%)
CMYKcmyk(66.5%, 75.4%, 0%, 25.1%)
CIE-LABlab(31.54, 49.57, -72.28)
CIE-LCHlch(31.54, 87.65, 304.44°)
OKLaboklab(43.15% 0.0299 -0.2088)
OKLCHoklch(43.15% 0.211 278.1)
XYZxyz(12.5318, 6.8835, 49.9484)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402FBF #AEBF2F
analogous
#2F66BF #402FBF #882FBF
triadic
#402FBF #BF402F #2FBF40
tetradic
#402FBF #BF2F66 #AEBF2F #2FBF88
square
#402FBF #BF2F66 #AEBF2F #2FBF88
split-complementary
#402FBF #BF882F #66BF2F
monochromatic
#1F175D #30238E #402FBF #6556D5 #9287E1

Accessibility & contrast

On white

8.83
#402FBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#402FBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402FBF
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402FBF#FFFFFF#000000##FFFFFF
##402FBF1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C3
Deuteranopia (green-blind)
#0044BC
Tritanopia (blue-blind)
#005975
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #402fbf;
/* rgb */ color: rgb(64, 47, 191);
/* oklch */ color: oklch(43.2% 0.211 278.1);
Tailwind
colors: {
  custom: {
    50: '#866bd4',
    500: '#402fbf',
    950: '#000000',
  },
}
SCSS
$custom: #402fbf;
$custom-light: #866bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#402fbf",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 191
  },
  "hsl": {
    "h": 247.083,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.43151,
    "c": 0.21091,
    "h": 278.1
  },
  "luminance": 0.06885
}

Semantic roles & 50–950 ramp

primary
#402FBF
secondary
#C2CB7F
accent
#E444D1
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #402FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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