#412A8E#412A8E

#412A8E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.156 H 287.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#412A8E
RGBrgb(65, 42, 142)
HSLhsl(254, 54%, 36%)
HSVhsv(254, 70%, 56%)
CMYKcmyk(54.2%, 70.4%, 0%, 44.3%)
CIE-LABlab(25.96, 37.25, -51.87)
CIE-LCHlch(25.96, 63.86, 305.68°)
OKLaboklab(37.79% 0.0454 -0.149)
OKLCHoklch(37.79% 0.156 287)
XYZxyz(7.8890, 4.7323, 26.0837)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412A8E #778E2A
analogous
#2A458E #412A8E #732A8E
triadic
#412A8E #8E412A #2A8E41
tetradic
#412A8E #8E2A45 #778E2A #2A8E73
square
#412A8E #8E2A45 #778E2A #2A8E73
split-complementary
#412A8E #8E732A #458E2A
monochromatic
#160E30 #2B1C5F #412A8E #5738BD #7B62D1

Accessibility & contrast

On white

10.79
#412A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#412A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412A8E
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412A8E#FFFFFF#000000##FFFFFF
##412A8E1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #412a8e;
/* rgb */ color: rgb(65, 42, 142);
/* oklch */ color: oklch(37.8% 0.156 287.0);
Tailwind
colors: {
  custom: {
    50: '#7e65b0',
    500: '#412a8e',
    950: '#000000',
  },
}
SCSS
$custom: #412a8e;
$custom-light: #7e65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#412a8e",
  "rgb": {
    "r": 65,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 253.8,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37789,
    "c": 0.15579,
    "h": 287
  },
  "luminance": 0.04733
}

Semantic roles & 50–950 ramp

primary
#412A8E
secondary
#A2B65D
accent
#DE4ABC
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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