#402985#402985

#402985 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.7% C 0.145 H 288.6°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#402985
RGBrgb(64, 41, 133)
HSLhsl(255, 53%, 34%)
HSVhsv(255, 69%, 52%)
CMYKcmyk(51.9%, 69.2%, 0%, 47.8%)
CIE-LABlab(24.86, 34.87, -48.07)
CIE-LCHlch(24.86, 59.38, 305.96°)
OKLaboklab(36.73% 0.0464 -0.1379)
OKLCHoklch(36.73% 0.145 288.6)
XYZxyz(7.1397, 4.3690, 22.6529)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402985 #6E8529
analogous
#294085 #402985 #6E2985
triadic
#402985 #854029 #298540
tetradic
#402985 #852940 #6E8529 #29856E
square
#402985 #852940 #6E8529 #29856E
split-complementary
#402985 #856E29 #408529
monochromatic
#130C27 #291B56 #402985 #5737B4 #785CCD

Accessibility & contrast

On white

11.21
#402985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#402985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402985
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402985#FFFFFF#000000##FFFFFF
##4029851.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#274053
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #402985;
/* rgb */ color: rgb(64, 41, 133);
/* oklch */ color: oklch(36.7% 0.145 288.6);
Tailwind
colors: {
  custom: {
    50: '#7c64a9',
    500: '#402985',
    950: '#000000',
  },
}
SCSS
$custom: #402985;
$custom-light: #7c64a9;
$custom-dark: #000000;
JSON
{
  "hex": "#402985",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 133
  },
  "hsl": {
    "h": 255,
    "s": 52.874,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3673,
    "c": 0.14549,
    "h": 288.6
  },
  "luminance": 0.04369
}

Semantic roles & 50–950 ramp

primary
#402985
secondary
#9BB258
accent
#DC4CB8
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #402985

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

Preview Lab → · Contrast checker → · Palette generator →

#402985 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva