#22174B#22174B

#22174B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.3% C 0.092 H 287.7°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#22174B
RGBrgb(34, 23, 75)
HSLhsl(253, 53%, 19%)
HSVhsv(253, 69%, 29%)
CMYKcmyk(54.7%, 69.3%, 0%, 70.6%)
CIE-LABlab(12.36, 21.03, -30.53)
CIE-LCHlch(12.36, 37.08, 304.56°)
OKLaboklab(25.34% 0.0279 -0.0874)
OKLCHoklch(25.34% 0.092 287.7)
XYZxyz(2.2357, 1.4608, 6.8194)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22174B #404B17
analogous
#17264B #22174B #3C174B
triadic
#22174B #4B2217 #174B22
tetradic
#22174B #4B1726 #404B17 #174B3C
square
#22174B #4B1726 #404B17 #174B3C
split-complementary
#22174B #4B3C17 #264B17
monochromatic
#0B0717 #0D091C #22174B #37257A #4C34A9

Accessibility & contrast

On white

16.25
#22174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22174B
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22174B#FFFFFF#000000##FFFFFF
##22174B1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22174b;
/* rgb */ color: rgb(34, 23, 75);
/* oklch */ color: oklch(25.3% 0.092 287.7);
Tailwind
colors: {
  custom: {
    50: '#61547e',
    500: '#22174b',
    950: '#000000',
  },
}
SCSS
$custom: #22174b;
$custom-light: #61547e;
$custom-dark: #000000;
JSON
{
  "hex": "#22174b",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 252.692,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25337,
    "c": 0.0918,
    "h": 287.7
  },
  "luminance": 0.01461
}

Semantic roles & 50–950 ramp

primary
#22174B
secondary
#73823C
accent
#DC4BBE
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05030A
muted
#79787C

Preview Lab

Preview with #22174B

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

Preview Lab → · Contrast checker → · Palette generator →

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