#221796#221796

#221796 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.190 H 273.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#221796
RGBrgb(34, 23, 150)
HSLhsl(245, 73%, 34%)
HSVhsv(245, 85%, 59%)
CMYKcmyk(77.3%, 84.7%, 0%, 41.2%)
CIE-LABlab(20.65, 46.17, -65.66)
CIE-LCHlch(20.65, 80.27, 305.11°)
OKLaboklab(33.65% 0.0102 -0.1899)
OKLCHoklch(33.65% 0.19 273.1)
XYZxyz(6.4693, 3.1542, 29.1161)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221796 #8B9617
analogous
#174C96 #221796 #621796
triadic
#221796 #962217 #179622
tetradic
#221796 #96174C #8B9617 #179662
square
#221796 #96174C #8B9617 #179662
split-complementary
#221796 #966217 #4C9617
monochromatic
#0A072C #160F61 #221796 #2E1FCB #5345E2

Accessibility & contrast

On white

12.88
#221796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#221796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221796
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221796#FFFFFF#000000##FFFFFF
##2217961.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003799
Deuteranopia (green-blind)
#002C94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #221796;
/* rgb */ color: rgb(34, 23, 150);
/* oklch */ color: oklch(33.6% 0.190 273.1);
Tailwind
colors: {
  custom: {
    50: '#7359b6',
    500: '#221796',
    950: '#000000',
  },
}
SCSS
$custom: #221796;
$custom-light: #7359b6;
$custom-dark: #000000;
JSON
{
  "hex": "#221796",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 245.197,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33649,
    "c": 0.19018,
    "h": 273.1
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #221796

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

Preview Lab → · Contrast checker → · Palette generator →

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