#221896#221896

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

Color values

HEX#221896
RGBrgb(34, 24, 150)
HSLhsl(245, 72%, 34%)
HSVhsv(245, 84%, 59%)
CMYKcmyk(77.3%, 84%, 0%, 41.2%)
CIE-LABlab(20.81, 45.71, -65.40)
CIE-LCHlch(20.81, 79.79, 304.95°)
OKLaboklab(33.76% 0.0099 -0.1892)
OKLCHoklch(33.76% 0.189 273)
XYZxyz(6.4895, 3.1947, 29.1229)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221896 #8C9618
analogous
#184D96 #221896 #611896
triadic
#221896 #962218 #189622
tetradic
#221896 #96184D #8C9618 #189661
square
#221896 #96184D #8C9618 #189661
split-complementary
#221896 #966118 #4D9618
monochromatic
#0A072C #161061 #221896 #2E20CB #5347E2

Accessibility & contrast

On white

12.81
#221896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221896
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221896#FFFFFF#000000##FFFFFF
##2218961.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #221896;
/* rgb */ color: rgb(34, 24, 150);
/* oklch */ color: oklch(33.8% 0.189 273.0);
Tailwind
colors: {
  custom: {
    50: '#7359b6',
    500: '#221896',
    950: '#000000',
  },
}
SCSS
$custom: #221896;
$custom-light: #7359b6;
$custom-dark: #000000;
JSON
{
  "hex": "#221896",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 150
  },
  "hsl": {
    "h": 244.762,
    "s": 72.414,
    "l": 34.118
  },
  "oklch": {
    "l": 0.33757,
    "c": 0.18944,
    "h": 273
  },
  "luminance": 0.03195
}

Semantic roles & 50–950 ramp

primary
#221896
secondary
#B9C347
accent
#EF39E1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #221896

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

Preview Lab → · Contrast checker → · Palette generator →

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