#22123F#22123F

#22123F is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.082 H 295.8°. Best body text is #FFFFFF at 17.12:1 contrast (WCAG AA passes).

Color values

HEX#22123F
RGBrgb(34, 18, 63)
HSLhsl(261, 56%, 16%)
HSVhsv(261, 71%, 25%)
CMYKcmyk(46%, 71.4%, 0%, 75.3%)
CIE-LABlab(10.04, 20.35, -25.88)
CIE-LCHlch(10.04, 32.93, 308.18°)
OKLaboklab(23.32% 0.0356 -0.0738)
OKLCHoklch(23.32% 0.082 295.8)
XYZxyz(1.7730, 1.1315, 4.8267)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22123F #2F3F12
analogous
#12183F #22123F #38123F
triadic
#22123F #3F2212 #123F22
tetradic
#22123F #3F1218 #2F3F12 #123F38
square
#22123F #3F1218 #2F3F12 #123F38
split-complementary
#22123F #3F3812 #183F12
monochromatic
#0D0718 #0D0718 #22123F #3C206F #552D9E

Accessibility & contrast

On white

17.12
#22123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#22123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22123F
17.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22123F#FFFFFF#000000##FFFFFF
##22123F1.0017.121.2317.12
#FFFFFF17.121.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#001B3E
Tritanopia (blue-blind)
#1B1C26
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #22123f;
/* rgb */ color: rgb(34, 18, 63);
/* oklch */ color: oklch(23.3% 0.082 295.8);
Tailwind
colors: {
  custom: {
    50: '#605074',
    500: '#22123f',
    950: '#000000',
  },
}
SCSS
$custom: #22123f;
$custom-light: #605074;
$custom-dark: #000000;
JSON
{
  "hex": "#22123f",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 261.333,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23324,
    "c": 0.0819,
    "h": 295.8
  },
  "luminance": 0.01132
}

Semantic roles & 50–950 ramp

primary
#22123F
secondary
#607835
accent
#DF49AA
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #22123F

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

Preview Lab → · Contrast checker → · Palette generator →

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