#22174C#22174C

#22174C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.093 H 287.4°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#22174C
RGBrgb(34, 23, 76)
HSLhsl(252, 54%, 19%)
HSVhsv(252, 70%, 30%)
CMYKcmyk(55.3%, 69.7%, 0%, 70.2%)
CIE-LABlab(12.45, 21.38, -31.08)
CIE-LCHlch(12.45, 37.73, 304.53°)
OKLaboklab(25.43% 0.0278 -0.089)
OKLCHoklch(25.43% 0.093 287.4)
XYZxyz(2.2702, 1.4746, 7.0011)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22174C #414C17
analogous
#17274C #22174C #3D174C
triadic
#22174C #4C2217 #174C22
tetradic
#22174C #4C1727 #414C17 #174C3D
square
#22174C #4C1727 #414C17 #174C3D
split-complementary
#22174C #4C3D17 #274C17
monochromatic
#0B0717 #0D091D #22174C #37257B #4C33AA

Accessibility & contrast

On white

16.22
#22174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22174C
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22174C#FFFFFF#000000##FFFFFF
##22174C1.0016.221.3016.22
#FFFFFF16.221.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#13242F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #22174c;
/* rgb */ color: rgb(34, 23, 76);
/* oklch */ color: oklch(25.4% 0.093 287.4);
Tailwind
colors: {
  custom: {
    50: '#62547e',
    500: '#22174c',
    950: '#000000',
  },
}
SCSS
$custom: #22174c;
$custom-light: #62547e;
$custom-dark: #000000;
JSON
{
  "hex": "#22174c",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 252.453,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2543,
    "c": 0.0933,
    "h": 287.4
  },
  "luminance": 0.01475
}

Semantic roles & 50–950 ramp

primary
#22174C
secondary
#74833C
accent
#DD4BBF
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05030A
muted
#7A787C

Preview Lab

Preview with #22174C

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

Preview Lab → · Contrast checker → · Palette generator →

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