#421B8E#421B8E

#421B8E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.172 H 290.3°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#421B8E
RGBrgb(66, 27, 142)
HSLhsl(260, 68%, 33%)
HSVhsv(260, 81%, 56%)
CMYKcmyk(53.5%, 81%, 0%, 44.3%)
CIE-LABlab(23.32, 45.16, -56.19)
CIE-LCHlch(23.32, 72.09, 308.79°)
OKLaboklab(35.95% 0.0596 -0.1615)
OKLCHoklch(35.95% 0.172 290.3)
XYZxyz(7.5198, 3.8948, 25.9415)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B8E #678E1B
analogous
#1B2D8E #421B8E #7B1B8E
triadic
#421B8E #8E421B #1B8E42
tetradic
#421B8E #8E1B2D #678E1B #1B8E7B
square
#421B8E #8E1B2D #678E1B #1B8E7B
split-complementary
#421B8E #8E7B1B #2D8E1B
monochromatic
#120727 #2A115B #421B8E #5A25C1 #7A47DC

Accessibility & contrast

On white

11.80
#421B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#421B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421B8E
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B8E#FFFFFF#000000##FFFFFF
##421B8E1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#263C55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #421b8e;
/* rgb */ color: rgb(66, 27, 142);
/* oklch */ color: oklch(36.0% 0.172 290.3);
Tailwind
colors: {
  custom: {
    50: '#7f5db0',
    500: '#421b8e',
    950: '#000000',
  },
}
SCSS
$custom: #421b8e;
$custom-light: #7f5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#421b8e",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 260.348,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35954,
    "c": 0.17219,
    "h": 290.3
  },
  "luminance": 0.03895
}

Semantic roles & 50–950 ramp

primary
#421B8E
secondary
#95BE47
accent
#EB3DB0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #421B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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