#221898#221898

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

Color values

HEX#221898
RGBrgb(34, 24, 152)
HSLhsl(245, 73%, 35%)
HSVhsv(245, 84%, 60%)
CMYKcmyk(77.6%, 84.2%, 0%, 40.4%)
CIE-LABlab(21.05, 46.33, -66.22)
CIE-LCHlch(21.05, 80.82, 304.98°)
OKLaboklab(34% 0.0094 -0.1916)
OKLCHoklch(34% 0.192 272.8)
XYZxyz(6.6519, 3.2596, 29.9783)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221898 #8E9818
analogous
#184E98 #221898 #621898
triadic
#221898 #982218 #189822
tetradic
#221898 #98184E #8E9818 #189862
square
#221898 #98184E #8E9818 #189862
split-complementary
#221898 #986218 #4E9818
monochromatic
#0A072E #161063 #221898 #2E20CD #5448E2

Accessibility & contrast

On white

12.71
#221898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221898
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221898#FFFFFF#000000##FFFFFF
##2218981.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389B
Deuteranopia (green-blind)
#002C96
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #221898;
/* rgb */ color: rgb(34, 24, 152);
/* oklch */ color: oklch(34.0% 0.192 272.8);
Tailwind
colors: {
  custom: {
    50: '#735ab8',
    500: '#221898',
    950: '#000000',
  },
}
SCSS
$custom: #221898;
$custom-light: #735ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#221898",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 152
  },
  "hsl": {
    "h": 244.688,
    "s": 72.727,
    "l": 34.51
  },
  "oklch": {
    "l": 0.33999,
    "c": 0.19179,
    "h": 272.8
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#221898
secondary
#BAC448
accent
#EF38E1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #221898

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

Preview Lab → · Contrast checker → · Palette generator →

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