#402E90#402E90

#402E90 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.153 H 285.0°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#402E90
RGBrgb(64, 46, 144)
HSLhsl(251, 52%, 37%)
HSVhsv(251, 68%, 56%)
CMYKcmyk(55.6%, 68.1%, 0%, 43.5%)
CIE-LABlab(26.90, 35.35, -51.58)
CIE-LCHlch(26.90, 62.53, 304.42°)
OKLaboklab(38.5% 0.0398 -0.1482)
OKLCHoklch(38.5% 0.153 285)
XYZxyz(8.1239, 5.0571, 26.9282)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E90 #7E902E
analogous
#2E4D90 #402E90 #712E90
triadic
#402E90 #90402E #2E9040
tetradic
#402E90 #902E4D #7E902E #2E9071
square
#402E90 #902E4D #7E902E #2E9071
split-complementary
#402E90 #90712E #4D902E
monochromatic
#171033 #2B1F62 #402E90 #553DBE #7C69CF

Accessibility & contrast

On white

10.44
#402E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#402E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E90
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E90#FFFFFF#000000##FFFFFF
##402E901.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004293
Deuteranopia (green-blind)
#003D8E
Tritanopia (blue-blind)
#1D475B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #402e90;
/* rgb */ color: rgb(64, 46, 144);
/* oklch */ color: oklch(38.5% 0.153 285.0);
Tailwind
colors: {
  custom: {
    50: '#7d68b1',
    500: '#402e90',
    950: '#000000',
  },
}
SCSS
$custom: #402e90;
$custom-light: #7d68b1;
$custom-dark: #000000;
JSON
{
  "hex": "#402e90",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 144
  },
  "hsl": {
    "h": 251.02,
    "s": 51.579,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38495,
    "c": 0.15345,
    "h": 285
  },
  "luminance": 0.05058
}

Semantic roles & 50–950 ramp

primary
#402E90
secondary
#A7B664
accent
#DB4DC1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #402E90

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

Preview Lab → · Contrast checker → · Palette generator →

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