#412A8F#412A8F

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

Color values

HEX#412A8F
RGBrgb(65, 42, 143)
HSLhsl(254, 55%, 36%)
HSVhsv(254, 71%, 56%)
CMYKcmyk(54.5%, 70.6%, 0%, 43.9%)
CIE-LABlab(26.05, 37.56, -52.35)
CIE-LCHlch(26.05, 64.43, 305.66°)
OKLaboklab(37.88% 0.0452 -0.1504)
OKLCHoklch(37.88% 0.157 286.7)
XYZxyz(7.9644, 4.7625, 26.4809)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412A8F #788F2A
analogous
#2A468F #412A8F #742A8F
triadic
#412A8F #8F412A #2A8F41
tetradic
#412A8F #8F2A46 #788F2A #2A8F74
square
#412A8F #8F2A46 #788F2A #2A8F74
split-complementary
#412A8F #8F742A #468F2A
monochromatic
#160E30 #2B1C60 #412A8F #5738BE #7C62D1

Accessibility & contrast

On white

10.75
#412A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412A8F
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412A8F#FFFFFF#000000##FFFFFF
##412A8F1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#214459
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412a8f;
/* rgb */ color: rgb(65, 42, 143);
/* oklch */ color: oklch(37.9% 0.157 286.7);
Tailwind
colors: {
  custom: {
    50: '#7e65b1',
    500: '#412a8f',
    950: '#000000',
  },
}
SCSS
$custom: #412a8f;
$custom-light: #7e65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#412a8f",
  "rgb": {
    "r": 65,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 253.663,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37881,
    "c": 0.15707,
    "h": 286.7
  },
  "luminance": 0.04763
}

Semantic roles & 50–950 ramp

primary
#412A8F
secondary
#A3B75E
accent
#DE4ABC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #412A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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