#221799#221799

#221799 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.194 H 272.8°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#221799
RGBrgb(34, 23, 153)
HSLhsl(245, 74%, 35%)
HSVhsv(245, 85%, 60%)
CMYKcmyk(77.8%, 85%, 0%, 40%)
CIE-LABlab(21.03, 47.09, -66.89)
CIE-LCHlch(21.03, 81.80, 305.15°)
OKLaboklab(34.02% 0.0094 -0.1935)
OKLCHoklch(34.02% 0.194 272.8)
XYZxyz(6.7139, 3.2521, 30.4047)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221799 #8E9917
analogous
#174D99 #221799 #631799
triadic
#221799 #992217 #179922
tetradic
#221799 #99174D #8E9917 #179963
square
#221799 #99174D #8E9917 #179963
split-complementary
#221799 #996317 #4D9917
monochromatic
#0A072F #160F64 #221799 #2E1FCE #5447E3

Accessibility & contrast

On white

12.72
#221799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#221799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221799
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221799#FFFFFF#000000##FFFFFF
##2217991.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #221799;
/* rgb */ color: rgb(34, 23, 153);
/* oklch */ color: oklch(34.0% 0.194 272.8);
Tailwind
colors: {
  custom: {
    50: '#7459b8',
    500: '#221799',
    950: '#000000',
  },
}
SCSS
$custom: #221799;
$custom-light: #7459b8;
$custom-dark: #000000;
JSON
{
  "hex": "#221799",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 153
  },
  "hsl": {
    "h": 245.077,
    "s": 73.864,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34015,
    "c": 0.19369,
    "h": 272.8
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

primary
#221799
secondary
#BAC547
accent
#F137E1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #221799

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

Preview Lab → · Contrast checker → · Palette generator →

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