#221998#221998

#221998 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.191 H 272.7°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#221998
RGBrgb(34, 25, 152)
HSLhsl(244, 72%, 35%)
HSVhsv(244, 84%, 60%)
CMYKcmyk(77.6%, 83.6%, 0%, 40.4%)
CIE-LABlab(21.21, 45.86, -65.96)
CIE-LCHlch(21.21, 80.34, 304.81°)
OKLaboklab(34.11% 0.0091 -0.1908)
OKLCHoklch(34.11% 0.191 272.7)
XYZxyz(6.6729, 3.3016, 29.9853)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221998 #8F9819
analogous
#195098 #221998 #621998
triadic
#221998 #982219 #199822
tetradic
#221998 #981950 #8F9819 #199862
square
#221998 #981950 #8F9819 #199862
split-complementary
#221998 #986219 #509819
monochromatic
#0A082F #161063 #221998 #2E22CD #554AE1

Accessibility & contrast

On white

12.65
#221998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#221998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221998
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221998#FFFFFF#000000##FFFFFF
##2219981.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399B
Deuteranopia (green-blind)
#002D96
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #221998;
/* rgb */ color: rgb(34, 25, 152);
/* oklch */ color: oklch(34.1% 0.191 272.7);
Tailwind
colors: {
  custom: {
    50: '#735ab8',
    500: '#221998',
    950: '#000000',
  },
}
SCSS
$custom: #221998;
$custom-light: #735ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#221998",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 152
  },
  "hsl": {
    "h": 244.252,
    "s": 71.751,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34108,
    "c": 0.19104,
    "h": 272.7
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#221998
secondary
#BAC34A
accent
#EE39E2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #221998

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

Preview Lab → · Contrast checker → · Palette generator →

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