#221888#221888

#221888 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.173 H 274.6°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#221888
RGBrgb(34, 24, 136)
HSLhsl(245, 70%, 31%)
HSVhsv(245, 82%, 53%)
CMYKcmyk(75%, 82.4%, 0%, 46.7%)
CIE-LABlab(19.10, 41.26, -59.51)
CIE-LCHlch(19.10, 72.42, 304.74°)
OKLaboklab(32.08% 0.0137 -0.1721)
OKLCHoklch(32.08% 0.173 274.6)
XYZxyz(5.4288, 2.7704, 23.5364)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221888 #7E8818
analogous
#184688 #221888 #5A1888
triadic
#221888 #882218 #188822
tetradic
#221888 #881846 #7E8818 #18885A
square
#221888 #881846 #7E8818 #18885A
split-complementary
#221888 #885A18 #468818
monochromatic
#080620 #150F54 #221888 #2F21BC #4C3EDD

Accessibility & contrast

On white

13.51
#221888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#221888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221888
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221888#FFFFFF#000000##FFFFFF
##2218881.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002986
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #221888;
/* rgb */ color: rgb(34, 24, 136);
/* oklch */ color: oklch(32.1% 0.173 274.6);
Tailwind
colors: {
  custom: {
    50: '#6f58ac',
    500: '#221888',
    950: '#000000',
  },
}
SCSS
$custom: #221888;
$custom-light: #6f58ac;
$custom-dark: #000000;
JSON
{
  "hex": "#221888",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 245.357,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3208,
    "c": 0.17265,
    "h": 274.6
  },
  "luminance": 0.02771
}

Semantic roles & 50–950 ramp

primary
#221888
secondary
#B1BC40
accent
#ED3BDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #221888

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

Preview Lab → · Contrast checker → · Palette generator →

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