#22102F#22102F

#22102F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.062 H 308.9°. Best body text is #FFFFFF at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#22102F
RGBrgb(34, 16, 47)
HSLhsl(275, 49%, 12%)
HSVhsv(275, 66%, 18%)
CMYKcmyk(27.7%, 66%, 0%, 81.6%)
CIE-LABlab(8.27, 16.71, -17.15)
CIE-LCHlch(8.27, 23.94, 314.27°)
OKLaboklab(21.63% 0.0389 -0.0481)
OKLCHoklch(21.63% 0.062 308.9)
XYZxyz(1.3580, 0.9159, 2.7940)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22102F #1D2F10
analogous
#13102F #22102F #2F102C
triadic
#22102F #2F2210 #102F22
tetradic
#22102F #2F1310 #1D2F10 #102C2F
square
#22102F #2F1310 #1D2F10 #102C2F
split-complementary
#22102F #2C2F10 #102F13
monochromatic
#110817 #110817 #22102F #43205D #642F8A

Accessibility & contrast

On white

17.75
#22102F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#22102F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22102F
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22102F#FFFFFF#000000##FFFFFF
##22102F1.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071730
Deuteranopia (green-blind)
#0D182E
Tritanopia (blue-blind)
#20161D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #22102f;
/* rgb */ color: rgb(34, 16, 47);
/* oklch */ color: oklch(21.6% 0.062 308.9);
Tailwind
colors: {
  custom: {
    50: '#5e4f67',
    500: '#22102f',
    950: '#000000',
  },
}
SCSS
$custom: #22102f;
$custom-light: #5e4f67;
$custom-dark: #000000;
JSON
{
  "hex": "#22102f",
  "rgb": {
    "r": 34,
    "g": 16,
    "b": 47
  },
  "hsl": {
    "h": 274.839,
    "s": 49.206,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21626,
    "c": 0.06186,
    "h": 308.9
  },
  "luminance": 0.00916
}

Semantic roles & 50–950 ramp

primary
#22102F
secondary
#496833
accent
#D94F89
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #22102F

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

Preview Lab → · Contrast checker → · Palette generator →

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