#412F9B#412F9B

#412F9B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.166 H 283.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#412F9B
RGBrgb(65, 47, 155)
HSLhsl(250, 53%, 40%)
HSVhsv(250, 70%, 61%)
CMYKcmyk(58.1%, 69.7%, 0%, 39.2%)
CIE-LABlab(28.18, 38.42, -56.24)
CIE-LCHlch(28.18, 68.11, 304.34°)
OKLaboklab(39.74% 0.0386 -0.1618)
OKLCHoklch(39.74% 0.166 283.4)
XYZxyz(9.1111, 5.5228, 31.5899)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412F9B #899B2F
analogous
#2F539B #412F9B #772F9B
triadic
#412F9B #9B412F #2F9B41
tetradic
#412F9B #9B2F53 #899B2F #2F9B77
square
#412F9B #9B2F53 #899B2F #2F9B77
split-complementary
#412F9B #9B772F #539B2F
monochromatic
#1A133D #2D216C #412F9B #5842C6 #8171D4

Accessibility & contrast

On white

9.98
#412F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#412F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412F9B
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412F9B#FFFFFF#000000##FFFFFF
##412F9B1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#114B61
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #412f9b;
/* rgb */ color: rgb(65, 47, 155);
/* oklch */ color: oklch(39.7% 0.166 283.4);
Tailwind
colors: {
  custom: {
    50: '#8069b9',
    500: '#412f9b',
    950: '#000000',
  },
}
SCSS
$custom: #412f9b;
$custom-light: #8069b9;
$custom-dark: #000000;
JSON
{
  "hex": "#412f9b",
  "rgb": {
    "r": 65,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 250,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39736,
    "c": 0.16638,
    "h": 283.4
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#412F9B
secondary
#AEBB6A
accent
#DD4BC5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #412F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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