#22174F#22174F

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

Color values

HEX#22174F
RGBrgb(34, 23, 79)
HSLhsl(252, 55%, 20%)
HSVhsv(252, 71%, 31%)
CMYKcmyk(57%, 70.9%, 0%, 69%)
CIE-LABlab(12.72, 22.43, -32.70)
CIE-LCHlch(12.72, 39.66, 304.45°)
OKLaboklab(25.71% 0.0275 -0.0938)
OKLCHoklch(25.71% 0.098 286.3)
XYZxyz(2.3769, 1.5173, 7.5632)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22174F #444F17
analogous
#17284F #22174F #3E174F
triadic
#22174F #4F2217 #174F22
tetradic
#22174F #4F1728 #444F17 #174F3E
square
#22174F #4F1728 #444F17 #174F3E
split-complementary
#22174F #4F3E17 #284F17
monochromatic
#0A0718 #0E0920 #22174F #36257E #4B33AE

Accessibility & contrast

On white

16.11
#22174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22174F
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22174F#FFFFFF#000000##FFFFFF
##22174F1.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22174f;
/* rgb */ color: rgb(34, 23, 79);
/* oklch */ color: oklch(25.7% 0.098 286.3);
Tailwind
colors: {
  custom: {
    50: '#625481',
    500: '#22174f',
    950: '#000000',
  },
}
SCSS
$custom: #22174f;
$custom-light: #625481;
$custom-dark: #000000;
JSON
{
  "hex": "#22174f",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 251.786,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.25712,
    "c": 0.09776,
    "h": 286.3
  },
  "luminance": 0.01517
}

Semantic roles & 50–950 ramp

primary
#22174F
secondary
#78863C
accent
#DE4AC1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05030A
muted
#7A787C

Preview Lab

Preview with #22174F

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

Preview Lab → · Contrast checker → · Palette generator →

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