#221872#221872

#221872 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.145 H 277.7°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#221872
RGBrgb(34, 24, 114)
HSLhsl(247, 65%, 27%)
HSVhsv(247, 79%, 45%)
CMYKcmyk(70.2%, 78.9%, 0%, 55.3%)
CIE-LABlab(16.54, 33.98, -49.72)
CIE-LCHlch(16.54, 60.22, 304.35°)
OKLaboklab(29.54% 0.0195 -0.1436)
OKLCHoklch(29.54% 0.145 277.7)
XYZxyz(4.0226, 2.2079, 16.1305)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221872 #687218
analogous
#183B72 #221872 #4F1872
triadic
#221872 #722218 #187222
tetradic
#221872 #72183B #687218 #18724F
square
#221872 #72183B #687218 #18724F
split-complementary
#221872 #724F18 #3B7218
monochromatic
#080519 #130D3F #221872 #3123A5 #4331D4

Accessibility & contrast

On white

14.57
#221872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#221872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221872
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221872#FFFFFF#000000##FFFFFF
##2218721.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #221872;
/* rgb */ color: rgb(34, 24, 114);
/* oklch */ color: oklch(29.5% 0.145 277.7);
Tailwind
colors: {
  custom: {
    50: '#6a579c',
    500: '#221872',
    950: '#000000',
  },
}
SCSS
$custom: #221872;
$custom-light: #6a579c;
$custom-dark: #000000;
JSON
{
  "hex": "#221872",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 246.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29538,
    "c": 0.14495,
    "h": 277.7
  },
  "luminance": 0.02208
}

Semantic roles & 50–950 ramp

primary
#221872
secondary
#9CA73E
accent
#E840D5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #221872

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

Preview Lab → · Contrast checker → · Palette generator →

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