#402293#402293

#402293 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.171 H 286.9°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#402293
RGBrgb(64, 34, 147)
HSLhsl(256, 62%, 35%)
HSVhsv(256, 77%, 58%)
CMYKcmyk(56.5%, 76.9%, 0%, 42.4%)
CIE-LABlab(24.77, 42.96, -56.92)
CIE-LCHlch(24.77, 71.32, 307.04°)
OKLaboklab(37.06% 0.0497 -0.1638)
OKLCHoklch(37.06% 0.171 286.9)
XYZxyz(7.9513, 4.3402, 28.0169)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402293 #759322
analogous
#223D93 #402293 #782293
triadic
#402293 #934022 #229340
tetradic
#402293 #93223D #759322 #229378
square
#402293 #93223D #759322 #229378
split-complementary
#402293 #937822 #3D9322
monochromatic
#150B30 #2A1761 #402293 #562DC5 #7957D8

Accessibility & contrast

On white

11.24
#402293 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402293
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402293#FFFFFF#000000##FFFFFF
##4022931.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D96
Deuteranopia (green-blind)
#003891
Tritanopia (blue-blind)
#1B4259
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #402293;
/* rgb */ color: rgb(64, 34, 147);
/* oklch */ color: oklch(37.1% 0.171 286.9);
Tailwind
colors: {
  custom: {
    50: '#7f61b4',
    500: '#402293',
    950: '#000000',
  },
}
SCSS
$custom: #402293;
$custom-light: #7f61b4;
$custom-dark: #000000;
JSON
{
  "hex": "#402293",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 147
  },
  "hsl": {
    "h": 255.929,
    "s": 62.431,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37062,
    "c": 0.17119,
    "h": 286.9
  },
  "luminance": 0.04341
}

Semantic roles & 50–950 ramp

primary
#402293
secondary
#A1BC55
accent
#E542BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #402293

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

Preview Lab → · Contrast checker → · Palette generator →

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