#412B8E#412B8E

#412B8E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.155 H 286.7°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#412B8E
RGBrgb(65, 43, 142)
HSLhsl(253, 54%, 36%)
HSVhsv(253, 70%, 56%)
CMYKcmyk(54.2%, 69.7%, 0%, 44.3%)
CIE-LABlab(26.17, 36.67, -51.53)
CIE-LCHlch(26.17, 63.24, 305.44°)
OKLaboklab(37.94% 0.0445 -0.148)
OKLCHoklch(37.94% 0.155 286.7)
XYZxyz(7.9249, 4.8042, 26.0957)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412B8E #788E2B
analogous
#2B478E #412B8E #732B8E
triadic
#412B8E #8E412B #2B8E41
tetradic
#412B8E #8E2B47 #788E2B #2B8E73
square
#412B8E #8E2B47 #788E2B #2B8E73
split-complementary
#412B8E #8E732B #478E2B
monochromatic
#160F30 #2B1D5F #412B8E #5739BD #7C63D0

Accessibility & contrast

On white

10.71
#412B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#412B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412B8E
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412B8E#FFFFFF#000000##FFFFFF
##412B8E1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#224459
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412b8e;
/* rgb */ color: rgb(65, 43, 142);
/* oklch */ color: oklch(37.9% 0.155 286.7);
Tailwind
colors: {
  custom: {
    50: '#7e66b0',
    500: '#412b8e',
    950: '#000000',
  },
}
SCSS
$custom: #412b8e;
$custom-light: #7e66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#412b8e",
  "rgb": {
    "r": 65,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 253.333,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37941,
    "c": 0.15454,
    "h": 286.7
  },
  "luminance": 0.04805
}

Semantic roles & 50–950 ramp

primary
#412B8E
secondary
#A3B65F
accent
#DD4BBC
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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