#402290#402290

#402290 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.168 H 287.5°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#402290
RGBrgb(64, 34, 144)
HSLhsl(256, 62%, 35%)
HSVhsv(256, 76%, 56%)
CMYKcmyk(55.6%, 76.4%, 0%, 43.5%)
CIE-LABlab(24.47, 42.07, -55.55)
CIE-LCHlch(24.47, 69.68, 307.14°)
OKLaboklab(36.77% 0.0505 -0.1598)
OKLCHoklch(36.77% 0.168 287.5)
XYZxyz(7.7189, 4.2473, 26.7932)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402290 #729022
analogous
#223B90 #402290 #772290
triadic
#402290 #904022 #229040
tetradic
#402290 #90223B #729022 #229077
square
#402290 #90223B #729022 #229077
split-complementary
#402290 #907722 #3B9022
monochromatic
#140B2D #2A165E #402290 #562EC2 #7955D7

Accessibility & contrast

On white

11.35
#402290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#402290 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402290
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402290#FFFFFF#000000##FFFFFF
##4022901.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#00378E
Tritanopia (blue-blind)
#1E4057
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #402290;
/* rgb */ color: rgb(64, 34, 144);
/* oklch */ color: oklch(36.8% 0.168 287.5);
Tailwind
colors: {
  custom: {
    50: '#7e61b2',
    500: '#402290',
    950: '#000000',
  },
}
SCSS
$custom: #402290;
$custom-light: #7e61b2;
$custom-dark: #000000;
JSON
{
  "hex": "#402290",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 144
  },
  "hsl": {
    "h": 256.364,
    "s": 61.798,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36767,
    "c": 0.16759,
    "h": 287.5
  },
  "luminance": 0.04248
}

Semantic roles & 50–950 ramp

primary
#402290
secondary
#9FBB53
accent
#E543B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #402290

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

Preview Lab → · Contrast checker → · Palette generator →

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