#412F7D#412F7D

#412F7D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.1% C 0.126 H 289.4°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#412F7D
RGBrgb(65, 47, 125)
HSLhsl(254, 45%, 34%)
HSVhsv(254, 62%, 49%)
CMYKcmyk(48%, 62.4%, 0%, 51%)
CIE-LABlab(25.68, 28.92, -41.70)
CIE-LCHlch(25.68, 50.75, 304.74°)
OKLaboklab(37.15% 0.042 -0.1191)
OKLCHoklch(37.15% 0.126 289.4)
XYZxyz(6.8971, 4.6373, 19.9297)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412F7D #6B7D2F
analogous
#2F447D #412F7D #682F7D
triadic
#412F7D #7D412F #2F7D41
tetradic
#412F7D #7D2F44 #6B7D2F #2F7D68
square
#412F7D #7D2F44 #6B7D2F #2F7D68
split-complementary
#412F7D #7D682F #447D2F
monochromatic
#130E24 #2A1E51 #412F7D #5840A9 #7962C4

Accessibility & contrast

On white

10.89
#412F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#412F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412F7D
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412F7D#FFFFFF#000000##FFFFFF
##412F7D1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#2E4151
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #412f7d;
/* rgb */ color: rgb(65, 47, 125);
/* oklch */ color: oklch(37.1% 0.126 289.4);
Tailwind
colors: {
  custom: {
    50: '#7b68a3',
    500: '#412f7d',
    950: '#000000',
  },
}
SCSS
$custom: #412f7d;
$custom-light: #7b68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#412f7d",
  "rgb": {
    "r": 65,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 253.846,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37145,
    "c": 0.12631,
    "h": 289.4
  },
  "luminance": 0.04638
}

Semantic roles & 50–950 ramp

primary
#412F7D
secondary
#99AB5D
accent
#D553B7
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #412F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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