#421F58#421F58

#421F58 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.7% C 0.102 H 310.1°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#421F58
RGBrgb(66, 31, 88)
HSLhsl(277, 48%, 23%)
HSVhsv(277, 65%, 35%)
CMYKcmyk(25%, 64.8%, 0%, 65.5%)
CIE-LABlab(19.40, 28.25, -27.80)
CIE-LCHlch(19.40, 39.63, 315.47°)
OKLaboklab(31.73% 0.066 -0.0782)
OKLCHoklch(31.73% 0.102 310.1)
XYZxyz(4.4979, 2.8429, 9.5424)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F58 #35581F
analogous
#251F58 #421F58 #581F51
triadic
#421F58 #58421F #1F5842
tetradic
#421F58 #58251F #35581F #1F5158
square
#421F58 #58251F #35581F #1F5158
split-complementary
#421F58 #51581F #1F5825
monochromatic
#110817 #200F2B #421F58 #642F85 #863FB3

Accessibility & contrast

On white

13.39
#421F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#421F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F58
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F58#FFFFFF#000000##FFFFFF
##421F581.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092D5A
Deuteranopia (green-blind)
#193057
Tritanopia (blue-blind)
#3F2A38
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #421f58;
/* rgb */ color: rgb(66, 31, 88);
/* oklch */ color: oklch(31.7% 0.102 310.1);
Tailwind
colors: {
  custom: {
    50: '#785d87',
    500: '#421f58',
    950: '#000000',
  },
}
SCSS
$custom: #421f58;
$custom-light: #785d87;
$custom-dark: #000000;
JSON
{
  "hex": "#421f58",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 88
  },
  "hsl": {
    "h": 276.842,
    "s": 47.899,
    "l": 23.333
  },
  "oklch": {
    "l": 0.31729,
    "c": 0.10235,
    "h": 310.1
  },
  "luminance": 0.02843
}

Semantic roles & 50–950 ramp

primary
#421F58
secondary
#618D46
accent
#D75084
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #421F58

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

Preview Lab → · Contrast checker → · Palette generator →

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