#22123C#22123C

#22123C is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.1% C 0.077 H 297.5°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#22123C
RGBrgb(34, 18, 60)
HSLhsl(263, 54%, 15%)
HSVhsv(263, 70%, 24%)
CMYKcmyk(43.3%, 70%, 0%, 76.5%)
CIE-LABlab(9.79, 19.38, -24.15)
CIE-LCHlch(9.79, 30.96, 308.74°)
OKLaboklab(23.06% 0.0358 -0.0687)
OKLCHoklch(23.06% 0.077 297.5)
XYZxyz(1.6914, 1.0989, 4.3971)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22123C #2C3C12
analogous
#12173C #22123C #37123C
triadic
#22123C #3C2212 #123C22
tetradic
#22123C #3C1217 #2C3C12 #123C37
square
#22123C #3C1217 #2C3C12 #123C37
split-complementary
#22123C #3C3712 #173C12
monochromatic
#0D0718 #0D0718 #22123C #3D206B #572E9A

Accessibility & contrast

On white

17.22
#22123C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22123C
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22123C#FFFFFF#000000##FFFFFF
##22123C1.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3D
Deuteranopia (green-blind)
#031B3B
Tritanopia (blue-blind)
#1C1B24
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #22123c;
/* rgb */ color: rgb(34, 18, 60);
/* oklch */ color: oklch(23.1% 0.077 297.5);
Tailwind
colors: {
  custom: {
    50: '#5f5072',
    500: '#22123c',
    950: '#000000',
  },
}
SCSS
$custom: #22123c;
$custom-light: #5f5072;
$custom-dark: #000000;
JSON
{
  "hex": "#22123c",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 60
  },
  "hsl": {
    "h": 262.857,
    "s": 53.846,
    "l": 15.294
  },
  "oklch": {
    "l": 0.2306,
    "c": 0.07745,
    "h": 297.5
  },
  "luminance": 0.01099
}

Semantic roles & 50–950 ramp

primary
#22123C
secondary
#5D7535
accent
#DD4BA5
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050208
muted
#79787B

Preview Lab

Preview with #22123C

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

Preview Lab → · Contrast checker → · Palette generator →

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