#412F8F#412F8F

#412F8F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.151 H 285.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#412F8F
RGBrgb(65, 47, 143)
HSLhsl(251, 51%, 37%)
HSVhsv(251, 67%, 56%)
CMYKcmyk(54.5%, 67.1%, 0%, 43.9%)
CIE-LABlab(27.13, 34.61, -50.58)
CIE-LCHlch(27.13, 61.29, 304.38°)
OKLaboklab(38.66% 0.0404 -0.1452)
OKLCHoklch(38.66% 0.151 285.5)
XYZxyz(8.1529, 5.1396, 26.5437)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412F8F #7D8F2F
analogous
#2F4D8F #412F8F #712F8F
triadic
#412F8F #8F412F #2F8F41
tetradic
#412F8F #8F2F4D #7D8F2F #2F8F71
square
#412F8F #8F2F4D #7D8F2F #2F8F71
split-complementary
#412F8F #8F712F #4D8F2F
monochromatic
#171133 #2C2061 #412F8F #563EBD #7D6ACE

Accessibility & contrast

On white

10.36
#412F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#412F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412F8F
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412F8F#FFFFFF#000000##FFFFFF
##412F8F1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#21475A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #412f8f;
/* rgb */ color: rgb(65, 47, 143);
/* oklch */ color: oklch(38.7% 0.151 285.5);
Tailwind
colors: {
  custom: {
    50: '#7d69b1',
    500: '#412f8f',
    950: '#000000',
  },
}
SCSS
$custom: #412f8f;
$custom-light: #7d69b1;
$custom-dark: #000000;
JSON
{
  "hex": "#412f8f",
  "rgb": {
    "r": 65,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 251.25,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38659,
    "c": 0.15074,
    "h": 285.5
  },
  "luminance": 0.0514
}

Semantic roles & 50–950 ramp

primary
#412F8F
secondary
#A6B565
accent
#DA4EC0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #412F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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