#402E92#402E92

#402E92 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.156 H 284.7°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#402E92
RGBrgb(64, 46, 146)
HSLhsl(251, 52%, 38%)
HSVhsv(251, 68%, 57%)
CMYKcmyk(56.2%, 68.5%, 0%, 42.7%)
CIE-LABlab(27.07, 35.98, -52.53)
CIE-LCHlch(27.07, 63.67, 304.41°)
OKLaboklab(38.67% 0.0395 -0.151)
OKLCHoklch(38.67% 0.156 284.7)
XYZxyz(8.2781, 5.1188, 27.7404)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E92 #80922E
analogous
#2E4E92 #402E92 #722E92
triadic
#402E92 #92402E #2E9240
tetradic
#402E92 #922E4E #80922E #2E9272
square
#402E92 #922E4E #80922E #2E9272
split-complementary
#402E92 #92722E #4E922E
monochromatic
#171135 #2C1F63 #402E92 #543DC1 #7D6AD0

Accessibility & contrast

On white

10.38
#402E92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#402E92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E92
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E92#FFFFFF#000000##FFFFFF
##402E921.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004395
Deuteranopia (green-blind)
#003D90
Tritanopia (blue-blind)
#1B475C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #402e92;
/* rgb */ color: rgb(64, 46, 146);
/* oklch */ color: oklch(38.7% 0.156 284.7);
Tailwind
colors: {
  custom: {
    50: '#7e68b3',
    500: '#402e92',
    950: '#000000',
  },
}
SCSS
$custom: #402e92;
$custom-light: #7e68b3;
$custom-dark: #000000;
JSON
{
  "hex": "#402e92",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 146
  },
  "hsl": {
    "h": 250.8,
    "s": 52.083,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38674,
    "c": 0.15607,
    "h": 284.7
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

primary
#402E92
secondary
#A8B765
accent
#DC4CC2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #402E92

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

Preview Lab → · Contrast checker → · Palette generator →

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