#221148#221148

#221148 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.096 H 291.6°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#221148
RGBrgb(34, 17, 72)
HSLhsl(259, 62%, 17%)
HSVhsv(259, 76%, 28%)
CMYKcmyk(52.8%, 76.4%, 0%, 71.8%)
CIE-LABlab(10.62, 23.96, -31.27)
CIE-LCHlch(10.62, 39.40, 307.46°)
OKLaboklab(24% 0.0356 -0.0896)
OKLCHoklch(24% 0.096 291.6)
XYZxyz(2.0295, 1.2088, 6.2560)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221148 #374811
analogous
#111C48 #221148 #3D1148
triadic
#221148 #482211 #114822
tetradic
#221148 #48111C #374811 #11483D
square
#221148 #48111C #374811 #11483D
split-complementary
#221148 #483D11 #1C4811
monochromatic
#0C0619 #0C0619 #221148 #391D7A #5128AB

Accessibility & contrast

On white

16.91
#221148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#221148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221148
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221148#FFFFFF#000000##FFFFFF
##2211481.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4A
Deuteranopia (green-blind)
#001C47
Tritanopia (blue-blind)
#161F2A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #221148;
/* rgb */ color: rgb(34, 17, 72);
/* oklch */ color: oklch(24.0% 0.096 291.6);
Tailwind
colors: {
  custom: {
    50: '#62507b',
    500: '#221148',
    950: '#000000',
  },
}
SCSS
$custom: #221148;
$custom-light: #62507b;
$custom-dark: #000000;
JSON
{
  "hex": "#221148",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 258.545,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23999,
    "c": 0.09641,
    "h": 291.6
  },
  "luminance": 0.01209
}

Semantic roles & 50–950 ramp

primary
#221148
secondary
#698233
accent
#E543B3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#050209
muted
#7A787B

Preview Lab

Preview with #221148

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

Preview Lab → · Contrast checker → · Palette generator →

#221148 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva