#22145D#22145D

#22145D is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.121 H 283.2°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#22145D
RGBrgb(34, 20, 93)
HSLhsl(252, 65%, 22%)
HSVhsv(252, 78%, 36%)
CMYKcmyk(63.4%, 78.5%, 0%, 63.5%)
CIE-LABlab(13.41, 29.18, -41.05)
CIE-LCHlch(13.41, 50.36, 305.41°)
OKLaboklab(26.64% 0.0277 -0.1183)
OKLCHoklch(26.64% 0.121 283.2)
XYZxyz(2.8850, 1.6305, 10.5165)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22145D #4F5D14
analogous
#142B5D #22145D #47145D
triadic
#22145D #5D2214 #145D22
tetradic
#22145D #5D142B #4F5D14 #145D47
square
#22145D #5D142B #4F5D14 #145D47
split-complementary
#22145D #5D4714 #2B5D14
monochromatic
#090519 #10092B #22145D #341F8F #472AC2

Accessibility & contrast

On white

15.83
#22145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#22145D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22145D
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22145D#FFFFFF#000000##FFFFFF
##22145D1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #22145d;
/* rgb */ color: rgb(34, 20, 93);
/* oklch */ color: oklch(26.6% 0.121 283.2);
Tailwind
colors: {
  custom: {
    50: '#66538c',
    500: '#22145d',
    950: '#000000',
  },
}
SCSS
$custom: #22145d;
$custom-light: #66538c;
$custom-dark: #000000;
JSON
{
  "hex": "#22145d",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 251.507,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2664,
    "c": 0.12149,
    "h": 283.2
  },
  "luminance": 0.01631
}

Semantic roles & 50–950 ramp

primary
#22145D
secondary
#839538
accent
#E840C7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #22145D

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

Preview Lab → · Contrast checker → · Palette generator →

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