#421B56#421B56

#421B56 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 31.0% C 0.107 H 312.3°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#421B56
RGBrgb(66, 27, 86)
HSLhsl(280, 52%, 22%)
HSVhsv(280, 69%, 34%)
CMYKcmyk(23.3%, 68.6%, 0%, 66.3%)
CIE-LABlab(18.43, 30.02, -28.02)
CIE-LCHlch(18.43, 41.06, 316.97°)
OKLaboklab(30.98% 0.0717 -0.0789)
OKLCHoklch(30.98% 0.107 312.3)
XYZxyz(4.3181, 2.6141, 9.0794)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B56 #2F561B
analogous
#251B56 #421B56 #561B4D
triadic
#421B56 #56421B #1B5642
tetradic
#421B56 #56251B #2F561B #1B4D56
square
#421B56 #56251B #2F561B #1B4D56
split-complementary
#421B56 #4D561B #1B5625
monochromatic
#120717 #1E0C27 #421B56 #662A85 #8938B3

Accessibility & contrast

On white

13.79
#421B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#421B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421B56
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B56#FFFFFF#000000##FFFFFF
##421B561.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032B58
Deuteranopia (green-blind)
#162E55
Tritanopia (blue-blind)
#402635
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #421b56;
/* rgb */ color: rgb(66, 27, 86);
/* oklch */ color: oklch(31.0% 0.107 312.3);
Tailwind
colors: {
  custom: {
    50: '#795a86',
    500: '#421b56',
    950: '#000000',
  },
}
SCSS
$custom: #421b56;
$custom-light: #795a86;
$custom-dark: #000000;
JSON
{
  "hex": "#421b56",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 86
  },
  "hsl": {
    "h": 279.661,
    "s": 52.212,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30976,
    "c": 0.10657,
    "h": 312.3
  },
  "luminance": 0.02614
}

Semantic roles & 50–950 ramp

primary
#421B56
secondary
#5A8C41
accent
#DC4C7D
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #421B56

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

Preview Lab → · Contrast checker → · Palette generator →

#421B56 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva