#22174A#22174A

#22174A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.090 H 288.1°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#22174A
RGBrgb(34, 23, 74)
HSLhsl(253, 53%, 19%)
HSVhsv(253, 69%, 29%)
CMYKcmyk(54.1%, 68.9%, 0%, 71%)
CIE-LABlab(12.27, 20.69, -29.99)
CIE-LCHlch(12.27, 36.43, 304.60°)
OKLaboklab(25.25% 0.028 -0.0858)
OKLCHoklch(25.25% 0.09 288.1)
XYZxyz(2.2018, 1.4472, 6.6406)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22174A #3F4A17
analogous
#17264A #22174A #3C174A
triadic
#22174A #4A2217 #174A22
tetradic
#22174A #4A1726 #3F4A17 #174A3C
square
#22174A #4A1726 #3F4A17 #174A3C
split-complementary
#22174A #4A3C17 #264A17
monochromatic
#0B0717 #0D081B #22174A #372679 #4D34A7

Accessibility & contrast

On white

16.29
#22174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#22174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22174A
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22174A#FFFFFF#000000##FFFFFF
##22174A1.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#14232E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #22174a;
/* rgb */ color: rgb(34, 23, 74);
/* oklch */ color: oklch(25.2% 0.090 288.1);
Tailwind
colors: {
  custom: {
    50: '#61547d',
    500: '#22174a',
    950: '#000000',
  },
}
SCSS
$custom: #22174a;
$custom-light: #61547d;
$custom-dark: #000000;
JSON
{
  "hex": "#22174a",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 252.941,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25245,
    "c": 0.09029,
    "h": 288.1
  },
  "luminance": 0.01447
}

Semantic roles & 50–950 ramp

primary
#22174A
secondary
#72813C
accent
#DC4CBD
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050309
muted
#79787B

Preview Lab

Preview with #22174A

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

Preview Lab → · Contrast checker → · Palette generator →

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