#402FC0#402FC0

#402FC0 is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.3% C 0.212 H 278.0°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#402FC0
RGBrgb(64, 47, 192)
HSLhsl(247, 61%, 47%)
HSVhsv(247, 76%, 75%)
CMYKcmyk(66.7%, 75.5%, 0%, 24.7%)
CIE-LABlab(31.64, 49.88, -72.70)
CIE-LCHlch(31.64, 88.17, 304.45°)
OKLaboklab(43.25% 0.0296 -0.21)
OKLCHoklch(43.25% 0.212 278)
XYZxyz(12.6422, 6.9277, 50.5299)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402FC0 #AFC02F
analogous
#2F67C0 #402FC0 #882FC0
triadic
#402FC0 #C0402F #2FC040
tetradic
#402FC0 #C02F67 #AFC02F #2FC088
square
#402FC0 #C02F67 #AFC02F #2FC088
split-complementary
#402FC0 #C0882F #67C02F
monochromatic
#1F175E #30238F #402FC0 #6556D6 #9288E2

Accessibility & contrast

On white

8.80
#402FC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#402FC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402FC0
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402FC0#FFFFFF#000000##FFFFFF
##402FC01.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C4
Deuteranopia (green-blind)
#0044BD
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #402fc0;
/* rgb */ color: rgb(64, 47, 192);
/* oklch */ color: oklch(43.3% 0.212 278.0);
Tailwind
colors: {
  custom: {
    50: '#866bd4',
    500: '#402fc0',
    950: '#000000',
  },
}
SCSS
$custom: #402fc0;
$custom-light: #866bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#402fc0",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 192
  },
  "hsl": {
    "h": 247.034,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.43253,
    "c": 0.21208,
    "h": 278
  },
  "luminance": 0.06929
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #402FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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