#412D9E#412D9E

#412D9E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.173 H 283.3°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#412D9E
RGBrgb(65, 45, 158)
HSLhsl(251, 56%, 40%)
HSVhsv(251, 72%, 62%)
CMYKcmyk(58.9%, 71.5%, 0%, 38%)
CIE-LABlab(28.03, 40.52, -58.30)
CIE-LCHlch(28.03, 71.00, 304.80°)
OKLaboklab(39.72% 0.0398 -0.1679)
OKLCHoklch(39.72% 0.173 283.3)
XYZxyz(9.2880, 5.4686, 32.9072)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412D9E #8A9E2D
analogous
#2D529E #412D9E #792D9E
triadic
#412D9E #9E412D #2D9E41
tetradic
#412D9E #9E2D52 #8A9E2D #2D9E79
square
#412D9E #9E2D52 #8A9E2D #2D9E79
split-complementary
#412D9E #9E792D #529E2D
monochromatic
#1A123F #2D1F6E #412D9E #5840C9 #826FD6

Accessibility & contrast

On white

10.03
#412D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412D9E
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412D9E#FFFFFF#000000##FFFFFF
##412D9E1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#0B4B62
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #412d9e;
/* rgb */ color: rgb(65, 45, 158);
/* oklch */ color: oklch(39.7% 0.173 283.3);
Tailwind
colors: {
  custom: {
    50: '#8068bc',
    500: '#412d9e',
    950: '#000000',
  },
}
SCSS
$custom: #412d9e;
$custom-light: #8068bc;
$custom-dark: #000000;
JSON
{
  "hex": "#412d9e",
  "rgb": {
    "r": 65,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 250.619,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39716,
    "c": 0.17254,
    "h": 283.3
  },
  "luminance": 0.05469
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #412D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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