#412A8D#412A8D

#412A8D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.155 H 287.2°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#412A8D
RGBrgb(65, 42, 141)
HSLhsl(254, 54%, 36%)
HSVhsv(254, 70%, 55%)
CMYKcmyk(53.9%, 70.2%, 0%, 44.7%)
CIE-LABlab(25.87, 36.94, -51.40)
CIE-LCHlch(25.87, 63.29, 305.71°)
OKLaboklab(37.7% 0.0456 -0.1476)
OKLCHoklch(37.7% 0.155 287.2)
XYZxyz(7.8142, 4.7024, 25.6901)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412A8D #768D2A
analogous
#2A458D #412A8D #722A8D
triadic
#412A8D #8D412A #2A8D41
tetradic
#412A8D #8D2A45 #768D2A #2A8D72
square
#412A8D #8D2A45 #768D2A #2A8D72
split-complementary
#412A8D #8D722A #458D2A
monochromatic
#160E2F #2B1C5E #412A8D #5738BC #7B61D0

Accessibility & contrast

On white

10.82
#412A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#412A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412A8D
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412A8D#FFFFFF#000000##FFFFFF
##412A8D1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#234358
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412a8d;
/* rgb */ color: rgb(65, 42, 141);
/* oklch */ color: oklch(37.7% 0.155 287.2);
Tailwind
colors: {
  custom: {
    50: '#7e65af',
    500: '#412a8d',
    950: '#000000',
  },
}
SCSS
$custom: #412a8d;
$custom-light: #7e65af;
$custom-dark: #000000;
JSON
{
  "hex": "#412a8d",
  "rgb": {
    "r": 65,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 253.939,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37699,
    "c": 0.15451,
    "h": 287.2
  },
  "luminance": 0.04703
}

Semantic roles & 50–950 ramp

primary
#412A8D
secondary
#A1B65D
accent
#DD4ABB
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #412A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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