#22123B#22123B

#22123B is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.0% C 0.076 H 298.2°. Best body text is #FFFFFF at 17.25:1 contrast (WCAG AA passes).

Color values

HEX#22123B
RGBrgb(34, 18, 59)
HSLhsl(263, 53%, 15%)
HSVhsv(263, 69%, 23%)
CMYKcmyk(42.4%, 69.5%, 0%, 76.9%)
CIE-LABlab(9.71, 19.05, -23.57)
CIE-LCHlch(9.71, 30.31, 308.95°)
OKLaboklab(22.97% 0.0359 -0.067)
OKLCHoklch(22.97% 0.076 298.2)
XYZxyz(1.6652, 1.0884, 4.2592)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22123B #2B3B12
analogous
#12163B #22123B #37123B
triadic
#22123B #3B2212 #123B22
tetradic
#22123B #3B1216 #2B3B12 #123B37
square
#22123B #3B1216 #2B3B12 #123B37
split-complementary
#22123B #3B3712 #163B12
monochromatic
#0E0717 #0E0717 #22123B #3D206A #582F99

Accessibility & contrast

On white

17.25
#22123B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22123B
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22123B#FFFFFF#000000##FFFFFF
##22123B1.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3C
Deuteranopia (green-blind)
#041A3A
Tritanopia (blue-blind)
#1C1B24
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #22123b;
/* rgb */ color: rgb(34, 18, 59);
/* oklch */ color: oklch(23.0% 0.076 298.2);
Tailwind
colors: {
  custom: {
    50: '#5f5071',
    500: '#22123b',
    950: '#000000',
  },
}
SCSS
$custom: #22123b;
$custom-light: #5f5071;
$custom-dark: #000000;
JSON
{
  "hex": "#22123b",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 59
  },
  "hsl": {
    "h": 263.415,
    "s": 53.247,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22974,
    "c": 0.07595,
    "h": 298.2
  },
  "luminance": 0.01088
}

Semantic roles & 50–950 ramp

primary
#22123B
secondary
#5B7435
accent
#DD4BA4
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050207
muted
#79787A

Preview Lab

Preview with #22123B

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

Preview Lab → · Contrast checker → · Palette generator →

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