#221797#221797

#221797 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.191 H 273.0°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#221797
RGBrgb(34, 23, 151)
HSLhsl(245, 74%, 34%)
HSVhsv(245, 85%, 59%)
CMYKcmyk(77.5%, 84.8%, 0%, 40.8%)
CIE-LABlab(20.78, 46.48, -66.07)
CIE-LCHlch(20.78, 80.78, 305.12°)
OKLaboklab(33.77% 0.0099 -0.1911)
OKLCHoklch(33.77% 0.191 273)
XYZxyz(6.5501, 3.1865, 29.5420)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221797 #8C9717
analogous
#174C97 #221797 #621797
triadic
#221797 #972217 #179722
tetradic
#221797 #97174C #8C9717 #179762
square
#221797 #97174C #8C9717 #179762
split-complementary
#221797 #976217 #4C9717
monochromatic
#0A072D #160F62 #221797 #2E1FCC #5346E3

Accessibility & contrast

On white

12.83
#221797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#221797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221797
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221797#FFFFFF#000000##FFFFFF
##2217971.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389A
Deuteranopia (green-blind)
#002C95
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #221797;
/* rgb */ color: rgb(34, 23, 151);
/* oklch */ color: oklch(33.8% 0.191 273.0);
Tailwind
colors: {
  custom: {
    50: '#7359b7',
    500: '#221797',
    950: '#000000',
  },
}
SCSS
$custom: #221797;
$custom-light: #7359b7;
$custom-dark: #000000;
JSON
{
  "hex": "#221797",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 151
  },
  "hsl": {
    "h": 245.156,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.33771,
    "c": 0.19136,
    "h": 273
  },
  "luminance": 0.03187
}

Semantic roles & 50–950 ramp

primary
#221797
secondary
#B9C446
accent
#F038E0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #221797

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

Preview Lab → · Contrast checker → · Palette generator →

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