#21174F#21174F

#21174F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.098 H 285.4°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#21174F
RGBrgb(33, 23, 79)
HSLhsl(251, 55%, 20%)
HSVhsv(251, 71%, 31%)
CMYKcmyk(58.2%, 70.9%, 0%, 69%)
CIE-LABlab(12.61, 22.22, -32.88)
CIE-LCHlch(12.61, 39.69, 304.06°)
OKLaboklab(25.61% 0.0259 -0.0944)
OKLCHoklch(25.61% 0.098 285.4)
XYZxyz(2.3445, 1.5005, 7.5617)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21174F #454F17
analogous
#17294F #21174F #3D174F
triadic
#21174F #4F2117 #174F21
tetradic
#21174F #4F1729 #454F17 #174F3D
square
#21174F #4F1729 #454F17 #174F3D
split-complementary
#21174F #4F3D17 #294F17
monochromatic
#0A0718 #0D0920 #21174F #35257E #4933AE

Accessibility & contrast

On white

16.15
#21174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#21174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21174F
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21174F#FFFFFF#000000##FFFFFF
##21174F1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#0E2530
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #21174f;
/* rgb */ color: rgb(33, 23, 79);
/* oklch */ color: oklch(25.6% 0.098 285.4);
Tailwind
colors: {
  custom: {
    50: '#625481',
    500: '#21174f',
    950: '#000000',
  },
}
SCSS
$custom: #21174f;
$custom-light: #625481;
$custom-dark: #000000;
JSON
{
  "hex": "#21174f",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 250.714,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.2561,
    "c": 0.09786,
    "h": 285.4
  },
  "luminance": 0.01501
}

Semantic roles & 50–950 ramp

primary
#21174F
secondary
#79863C
accent
#DE4AC4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05030A
muted
#7A787C

Preview Lab

Preview with #21174F

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

Preview Lab → · Contrast checker → · Palette generator →

#21174F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva