#412D9D#412D9D

#412D9D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.171 H 283.5°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#412D9D
RGBrgb(65, 45, 157)
HSLhsl(251, 55%, 40%)
HSVhsv(251, 71%, 62%)
CMYKcmyk(58.6%, 71.3%, 0%, 38.4%)
CIE-LABlab(27.94, 40.20, -57.85)
CIE-LCHlch(27.94, 70.44, 304.80°)
OKLaboklab(39.62% 0.04 -0.1665)
OKLCHoklch(39.62% 0.171 283.5)
XYZxyz(9.2023, 5.4343, 32.4558)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412D9D #899D2D
analogous
#2D519D #412D9D #792D9D
triadic
#412D9D #9D412D #2D9D41
tetradic
#412D9D #9D2D51 #899D2D #2D9D79
square
#412D9D #9D2D51 #899D2D #2D9D79
split-complementary
#412D9D #9D792D #519D2D
monochromatic
#1A123E #2D1F6D #412D9D #583FC8 #816FD6

Accessibility & contrast

On white

10.06
#412D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#412D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412D9D
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412D9D#FFFFFF#000000##FFFFFF
##412D9D1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#0D4B62
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #412d9d;
/* rgb */ color: rgb(65, 45, 157);
/* oklch */ color: oklch(39.6% 0.171 283.5);
Tailwind
colors: {
  custom: {
    50: '#8068bb',
    500: '#412d9d',
    950: '#000000',
  },
}
SCSS
$custom: #412d9d;
$custom-light: #8068bb;
$custom-dark: #000000;
JSON
{
  "hex": "#412d9d",
  "rgb": {
    "r": 65,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 250.714,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39622,
    "c": 0.17128,
    "h": 283.5
  },
  "luminance": 0.05435
}

Semantic roles & 50–950 ramp

primary
#412D9D
secondary
#AEBD69
accent
#DF49C4
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #412D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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