#412E8B#412E8B

#412E8B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.147 H 286.6°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#412E8B
RGBrgb(65, 46, 139)
HSLhsl(252, 50%, 36%)
HSVhsv(252, 67%, 55%)
CMYKcmyk(53.2%, 66.9%, 0%, 45.5%)
CIE-LABlab(26.57, 33.95, -49.02)
CIE-LCHlch(26.57, 59.62, 304.71°)
OKLaboklab(38.15% 0.0419 -0.1406)
OKLCHoklch(38.15% 0.147 286.6)
XYZxyz(7.8158, 4.9415, 24.9631)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412E8B #788B2E
analogous
#2E4A8B #412E8B #702E8B
triadic
#412E8B #8B412E #2E8B41
tetradic
#412E8B #8B2E4A #788B2E #2E8B70
square
#412E8B #8B2E4A #788B2E #2E8B70
split-complementary
#412E8B #8B702E #4A8B2E
monochromatic
#16102F #2B1F5D #412E8B #573DB9 #7C67CD

Accessibility & contrast

On white

10.56
#412E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#412E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412E8B
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412E8B#FFFFFF#000000##FFFFFF
##412E8B1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#254558
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #412e8b;
/* rgb */ color: rgb(65, 46, 139);
/* oklch */ color: oklch(38.1% 0.147 286.6);
Tailwind
colors: {
  custom: {
    50: '#7d68ae',
    500: '#412e8b',
    950: '#000000',
  },
}
SCSS
$custom: #412e8b;
$custom-light: #7d68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#412e8b",
  "rgb": {
    "r": 65,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 252.258,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38147,
    "c": 0.14675,
    "h": 286.6
  },
  "luminance": 0.04942
}

Semantic roles & 50–950 ramp

primary
#412E8B
secondary
#A3B361
accent
#DA4EBD
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #412E8B

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

Preview Lab → · Contrast checker → · Palette generator →

#412E8B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva