#412F7B#412F7B

#412F7B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.0% C 0.124 H 289.9°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#412F7B
RGBrgb(65, 47, 123)
HSLhsl(254, 45%, 33%)
HSVhsv(254, 62%, 48%)
CMYKcmyk(47.2%, 61.8%, 0%, 51.8%)
CIE-LABlab(25.52, 28.29, -40.68)
CIE-LCHlch(25.52, 49.55, 304.81°)
OKLaboklab(36.99% 0.0421 -0.1161)
OKLCHoklch(36.99% 0.124 289.9)
XYZxyz(6.7706, 4.5867, 19.2636)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412F7B #697B2F
analogous
#2F437B #412F7B #672F7B
triadic
#412F7B #7B412F #2F7B41
tetradic
#412F7B #7B2F43 #697B2F #2F7B67
square
#412F7B #7B2F43 #697B2F #2F7B67
split-complementary
#412F7B #7B672F #437B2F
monochromatic
#120D22 #2A1E4F #412F7B #5840A7 #7962C3

Accessibility & contrast

On white

10.95
#412F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#412F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412F7B
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412F7B#FFFFFF#000000##FFFFFF
##412F7B1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#2F4050
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #412f7b;
/* rgb */ color: rgb(65, 47, 123);
/* oklch */ color: oklch(37.0% 0.124 289.9);
Tailwind
colors: {
  custom: {
    50: '#7a68a2',
    500: '#412f7b',
    950: '#000000',
  },
}
SCSS
$custom: #412f7b;
$custom-light: #7a68a2;
$custom-dark: #000000;
JSON
{
  "hex": "#412f7b",
  "rgb": {
    "r": 65,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 254.211,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36985,
    "c": 0.12352,
    "h": 289.9
  },
  "luminance": 0.04587
}

Semantic roles & 50–950 ramp

primary
#412F7B
secondary
#97AA5C
accent
#D453B6
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #412F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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