#412F81#412F81

#412F81 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.5% C 0.132 H 288.5°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#412F81
RGBrgb(65, 47, 129)
HSLhsl(253, 47%, 35%)
HSVhsv(253, 64%, 51%)
CMYKcmyk(49.6%, 63.6%, 0%, 49.4%)
CIE-LABlab(25.99, 30.18, -43.72)
CIE-LCHlch(25.99, 53.12, 304.61°)
OKLaboklab(37.47% 0.0418 -0.1251)
OKLCHoklch(37.47% 0.132 288.5)
XYZxyz(7.1578, 4.7415, 21.3027)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412F81 #6F812F
analogous
#2F4681 #412F81 #6A2F81
triadic
#412F81 #81412F #2F8141
tetradic
#412F81 #812F46 #6F812F #2F816A
square
#412F81 #812F46 #6F812F #2F816A
split-complementary
#412F81 #816A2F #46812F
monochromatic
#140E27 #2A1F54 #412F81 #583FAE #7A64C6

Accessibility & contrast

On white

10.78
#412F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #412F81
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412F81#FFFFFF#000000##FFFFFF
##412F811.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#2C4253
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #412f81;
/* rgb */ color: rgb(65, 47, 129);
/* oklch */ color: oklch(37.5% 0.132 288.5);
Tailwind
colors: {
  custom: {
    50: '#7b68a6',
    500: '#412f81',
    950: '#000000',
  },
}
SCSS
$custom: #412f81;
$custom-light: #7b68a6;
$custom-dark: #000000;
JSON
{
  "hex": "#412f81",
  "rgb": {
    "r": 65,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 253.171,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3747,
    "c": 0.13184,
    "h": 288.5
  },
  "luminance": 0.04742
}

Semantic roles & 50–950 ramp

primary
#412F81
secondary
#9CAD5E
accent
#D652B9
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #412F81

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

Preview Lab → · Contrast checker → · Palette generator →

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