#412D8D#412D8D

#412D8D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.151 H 286.4°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#412D8D
RGBrgb(65, 45, 141)
HSLhsl(253, 52%, 36%)
HSVhsv(253, 68%, 55%)
CMYKcmyk(53.9%, 68.1%, 0%, 44.7%)
CIE-LABlab(26.52, 35.18, -50.34)
CIE-LCHlch(26.52, 61.41, 304.94°)
OKLaboklab(38.16% 0.0427 -0.1445)
OKLCHoklch(38.16% 0.151 286.4)
XYZxyz(7.9246, 4.9233, 25.7269)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412D8D #798D2D
analogous
#2D498D #412D8D #712D8D
triadic
#412D8D #8D412D #2D8D41
tetradic
#412D8D #8D2D49 #798D2D #2D8D71
square
#412D8D #8D2D49 #798D2D #2D8D71
split-complementary
#412D8D #8D712D #498D2D
monochromatic
#160F30 #2C1E5F #412D8D #563CBB #7C66CE

Accessibility & contrast

On white

10.58
#412D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#412D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412D8D
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412D8D#FFFFFF#000000##FFFFFF
##412D8D1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#234559
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #412d8d;
/* rgb */ color: rgb(65, 45, 141);
/* oklch */ color: oklch(38.2% 0.151 286.4);
Tailwind
colors: {
  custom: {
    50: '#7d67af',
    500: '#412d8d',
    950: '#000000',
  },
}
SCSS
$custom: #412d8d;
$custom-light: #7d67af;
$custom-dark: #000000;
JSON
{
  "hex": "#412d8d",
  "rgb": {
    "r": 65,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 252.5,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38162,
    "c": 0.1507,
    "h": 286.4
  },
  "luminance": 0.04924
}

Semantic roles & 50–950 ramp

primary
#412D8D
secondary
#A3B561
accent
#DB4DBD
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #412D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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