#221899#221899

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

Color values

HEX#221899
RGBrgb(34, 24, 153)
HSLhsl(245, 73%, 35%)
HSVhsv(245, 84%, 60%)
CMYKcmyk(77.8%, 84.3%, 0%, 40%)
CIE-LABlab(21.18, 46.64, -66.63)
CIE-LCHlch(21.18, 81.33, 304.99°)
OKLaboklab(34.12% 0.0091 -0.1927)
OKLCHoklch(34.12% 0.193 272.7)
XYZxyz(6.7342, 3.2925, 30.4114)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221899 #8F9918
analogous
#184F99 #221899 #621899
triadic
#221899 #992218 #189922
tetradic
#221899 #99184F #8F9918 #189962
square
#221899 #99184F #8F9918 #189962
split-complementary
#221899 #996218 #4F9918
monochromatic
#0A072F #161064 #221899 #2E20CE #5549E2

Accessibility & contrast

On white

12.66
#221899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221899
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221899#FFFFFF#000000##FFFFFF
##2218991.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #221899;
/* rgb */ color: rgb(34, 24, 153);
/* oklch */ color: oklch(34.1% 0.193 272.7);
Tailwind
colors: {
  custom: {
    50: '#745ab8',
    500: '#221899',
    950: '#000000',
  },
}
SCSS
$custom: #221899;
$custom-light: #745ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#221899",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 153
  },
  "hsl": {
    "h": 244.651,
    "s": 72.881,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3412,
    "c": 0.19296,
    "h": 272.7
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#221899
secondary
#BAC449
accent
#F038E1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #221899

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

Preview Lab → · Contrast checker → · Palette generator →

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