#22125D#22125D

#22125D is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.3% C 0.124 H 283.7°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#22125D
RGBrgb(34, 18, 93)
HSLhsl(253, 68%, 22%)
HSVhsv(253, 81%, 36%)
CMYKcmyk(63.4%, 80.6%, 0%, 63.5%)
CIE-LABlab(13.00, 30.35, -41.73)
CIE-LCHlch(13.00, 51.60, 306.03°)
OKLaboklab(26.35% 0.0294 -0.1202)
OKLCHoklch(26.35% 0.124 283.7)
XYZxyz(2.8512, 1.5628, 10.5052)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22125D #4D5D12
analogous
#12285D #22125D #48125D
triadic
#22125D #5D2212 #125D22
tetradic
#22125D #5D1228 #4D5D12 #125D48
square
#22125D #5D1228 #4D5D12 #125D48
split-complementary
#22125D #5D4812 #285D12
monochromatic
#09051A #0F082A #22125D #351C90 #4726C4

Accessibility & contrast

On white

16.00
#22125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#22125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22125D
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22125D#FFFFFF#000000##FFFFFF
##22125D1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#001F5C
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #22125d;
/* rgb */ color: rgb(34, 18, 93);
/* oklch */ color: oklch(26.3% 0.124 283.7);
Tailwind
colors: {
  custom: {
    50: '#66528c',
    500: '#22125d',
    950: '#000000',
  },
}
SCSS
$custom: #22125d;
$custom-light: #66528c;
$custom-dark: #000000;
JSON
{
  "hex": "#22125d",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 252.8,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26349,
    "c": 0.12378,
    "h": 283.7
  },
  "luminance": 0.01563
}

Semantic roles & 50–950 ramp

primary
#22125D
secondary
#819535
accent
#EA3DC6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #22125D

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

Preview Lab → · Contrast checker → · Palette generator →

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