#402FC5#402FC5

#402FC5 is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.8% C 0.218 H 277.5°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#402FC5
RGBrgb(64, 47, 197)
HSLhsl(247, 61%, 48%)
HSVhsv(247, 76%, 77%)
CMYKcmyk(67.5%, 76.1%, 0%, 22.7%)
CIE-LABlab(32.15, 51.41, -74.79)
CIE-LCHlch(32.15, 90.76, 304.50°)
OKLaboklab(43.76% 0.0285 -0.2161)
OKLCHoklch(43.76% 0.218 277.5)
XYZxyz(13.2056, 7.1531, 53.4973)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402FC5 #B4C52F
analogous
#2F69C5 #402FC5 #8B2FC5
triadic
#402FC5 #C5402F #2FC540
tetradic
#402FC5 #C52F69 #B4C52F #2FC58B
square
#402FC5 #C52F69 #B4C52F #2FC58B
split-complementary
#402FC5 #C58B2F #69C52F
monochromatic
#201762 #302394 #402FC5 #685AD8 #958BE3

Accessibility & contrast

On white

8.64
#402FC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#402FC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402FC5
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402FC5#FFFFFF#000000##FFFFFF
##402FC51.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C9
Deuteranopia (green-blind)
#0045C2
Tritanopia (blue-blind)
#005B79
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #402fc5;
/* rgb */ color: rgb(64, 47, 197);
/* oklch */ color: oklch(43.8% 0.218 277.5);
Tailwind
colors: {
  custom: {
    50: '#876bd8',
    500: '#402fc5',
    950: '#000000',
  },
}
SCSS
$custom: #402fc5;
$custom-light: #876bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#402fc5",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 197
  },
  "hsl": {
    "h": 246.8,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.43764,
    "c": 0.21797,
    "h": 277.5
  },
  "luminance": 0.07154
}

Semantic roles & 50–950 ramp

primary
#402FC5
secondary
#C5CD82
accent
#E543D2
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #402FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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