#22123A#22123A

#22123A is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 22.9% C 0.074 H 298.8°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#22123A
RGBrgb(34, 18, 58)
HSLhsl(264, 53%, 15%)
HSVhsv(264, 69%, 23%)
CMYKcmyk(41.4%, 69%, 0%, 77.3%)
CIE-LABlab(9.63, 18.73, -22.98)
CIE-LCHlch(9.63, 29.65, 309.18°)
OKLaboklab(22.89% 0.0359 -0.0652)
OKLCHoklch(22.89% 0.074 298.8)
XYZxyz(1.6395, 1.0782, 4.1239)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22123A #2A3A12
analogous
#12163A #22123A #36123A
triadic
#22123A #3A2212 #123A22
tetradic
#22123A #3A1216 #2A3A12 #123A36
square
#22123A #3A1216 #2A3A12 #123A36
split-complementary
#22123A #3A3612 #163A12
monochromatic
#0E0717 #0E0717 #22123A #3D2069 #592F97

Accessibility & contrast

On white

17.28
#22123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#22123A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22123A
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22123A#FFFFFF#000000##FFFFFF
##22123A1.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3B
Deuteranopia (green-blind)
#051A39
Tritanopia (blue-blind)
#1D1A23
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #22123a;
/* rgb */ color: rgb(34, 18, 58);
/* oklch */ color: oklch(22.9% 0.074 298.8);
Tailwind
colors: {
  custom: {
    50: '#5f5070',
    500: '#22123a',
    950: '#000000',
  },
}
SCSS
$custom: #22123a;
$custom-light: #5f5070;
$custom-dark: #000000;
JSON
{
  "hex": "#22123a",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 264,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22889,
    "c": 0.07446,
    "h": 298.8
  },
  "luminance": 0.01078
}

Semantic roles & 50–950 ramp

primary
#22123A
secondary
#5A7335
accent
#DC4CA2
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050207
muted
#79787A

Preview Lab

Preview with #22123A

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

Preview Lab → · Contrast checker → · Palette generator →

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