#22123D#22123D

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

Color values

HEX#22123D
RGBrgb(34, 18, 61)
HSLhsl(262, 54%, 15%)
HSVhsv(262, 70%, 24%)
CMYKcmyk(44.3%, 70.5%, 0%, 76.1%)
CIE-LABlab(9.87, 19.70, -24.73)
CIE-LCHlch(9.87, 31.62, 308.54°)
OKLaboklab(23.15% 0.0357 -0.0704)
OKLCHoklch(23.15% 0.079 296.9)
XYZxyz(1.7181, 1.1096, 4.5376)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22123D #2D3D12
analogous
#12173D #22123D #37123D
triadic
#22123D #3D2212 #123D22
tetradic
#22123D #3D1217 #2D3D12 #123D37
square
#22123D #3D1217 #2D3D12 #123D37
split-complementary
#22123D #3D3712 #173D12
monochromatic
#0D0718 #0D0718 #22123D #3C206C #572E9C

Accessibility & contrast

On white

17.18
#22123D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22123D
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22123D#FFFFFF#000000##FFFFFF
##22123D1.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3E
Deuteranopia (green-blind)
#011B3C
Tritanopia (blue-blind)
#1B1B25
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #22123d;
/* rgb */ color: rgb(34, 18, 61);
/* oklch */ color: oklch(23.1% 0.079 296.9);
Tailwind
colors: {
  custom: {
    50: '#605073',
    500: '#22123d',
    950: '#000000',
  },
}
SCSS
$custom: #22123d;
$custom-light: #605073;
$custom-dark: #000000;
JSON
{
  "hex": "#22123d",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 61
  },
  "hsl": {
    "h": 262.326,
    "s": 54.43,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23147,
    "c": 0.07893,
    "h": 296.9
  },
  "luminance": 0.0111
}

Semantic roles & 50–950 ramp

primary
#22123D
secondary
#5E7635
accent
#DE4AA7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #22123D

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

Preview Lab → · Contrast checker → · Palette generator →

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