#402FC4#402FC4

#402FC4 is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.7% C 0.217 H 277.6°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#402FC4
RGBrgb(64, 47, 196)
HSLhsl(247, 61%, 48%)
HSVhsv(247, 76%, 77%)
CMYKcmyk(67.3%, 76%, 0%, 23.1%)
CIE-LABlab(32.05, 51.10, -74.38)
CIE-LCHlch(32.05, 90.24, 304.49°)
OKLaboklab(43.66% 0.0287 -0.2149)
OKLCHoklch(43.66% 0.217 277.6)
XYZxyz(13.0914, 7.1074, 52.8958)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402FC4 #B3C42F
analogous
#2F68C4 #402FC4 #8B2FC4
triadic
#402FC4 #C4402F #2FC440
tetradic
#402FC4 #C42F68 #B3C42F #2FC48B
square
#402FC4 #C42F68 #B3C42F #2FC48B
split-complementary
#402FC4 #C48B2F #68C42F
monochromatic
#201761 #302393 #402FC4 #6759D7 #948AE3

Accessibility & contrast

On white

8.67
#402FC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#402FC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402FC4
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402FC4#FFFFFF#000000##FFFFFF
##402FC41.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C8
Deuteranopia (green-blind)
#0045C1
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #402fc4;
/* rgb */ color: rgb(64, 47, 196);
/* oklch */ color: oklch(43.7% 0.217 277.6);
Tailwind
colors: {
  custom: {
    50: '#876bd7',
    500: '#402fc4',
    950: '#000000',
  },
}
SCSS
$custom: #402fc4;
$custom-light: #876bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#402fc4",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 196
  },
  "hsl": {
    "h": 246.846,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.43661,
    "c": 0.2168,
    "h": 277.6
  },
  "luminance": 0.07109
}

Semantic roles & 50–950 ramp

primary
#402FC4
secondary
#C4CD82
accent
#E443D2
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #402FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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