#412D8E#412D8E

#412D8E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.3% C 0.152 H 286.2°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#412D8E
RGBrgb(65, 45, 142)
HSLhsl(252, 52%, 37%)
HSVhsv(252, 68%, 56%)
CMYKcmyk(54.2%, 68.3%, 0%, 44.3%)
CIE-LABlab(26.60, 35.49, -50.82)
CIE-LCHlch(26.60, 61.99, 304.93°)
OKLaboklab(38.25% 0.0425 -0.1459)
OKLCHoklch(38.25% 0.152 286.2)
XYZxyz(7.9994, 4.9532, 26.1205)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412D8E #7A8E2D
analogous
#2D4A8E #412D8E #722D8E
triadic
#412D8E #8E412D #2D8E41
tetradic
#412D8E #8E2D4A #7A8E2D #2D8E72
square
#412D8E #8E2D4A #7A8E2D #2D8E72
split-complementary
#412D8E #8E722D #4A8E2D
monochromatic
#161031 #2C1E60 #412D8E #563CBC #7C67CF

Accessibility & contrast

On white

10.55
#412D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412D8E
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412D8E#FFFFFF#000000##FFFFFF
##412D8E1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#224559
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #412d8e;
/* rgb */ color: rgb(65, 45, 142);
/* oklch */ color: oklch(38.3% 0.152 286.2);
Tailwind
colors: {
  custom: {
    50: '#7d67b0',
    500: '#412d8e',
    950: '#000000',
  },
}
SCSS
$custom: #412d8e;
$custom-light: #7d67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#412d8e",
  "rgb": {
    "r": 65,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 252.371,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38251,
    "c": 0.15201,
    "h": 286.2
  },
  "luminance": 0.04954
}

Semantic roles & 50–950 ramp

primary
#412D8E
secondary
#A4B561
accent
#DB4CBE
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #412D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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