#221877#221877

#221877 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.151 H 276.9°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#221877
RGBrgb(34, 24, 119)
HSLhsl(246, 66%, 28%)
HSVhsv(246, 80%, 47%)
CMYKcmyk(71.4%, 79.8%, 0%, 53.3%)
CIE-LABlab(17.11, 35.66, -52.01)
CIE-LCHlch(17.11, 63.06, 304.44°)
OKLaboklab(30.1% 0.0182 -0.1503)
OKLCHoklch(30.1% 0.151 276.9)
XYZxyz(4.3150, 2.3249, 17.6705)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221877 #6D7718
analogous
#183D77 #221877 #511877
triadic
#221877 #772218 #187722
tetradic
#221877 #77183D #6D7718 #187751
square
#221877 #77183D #6D7718 #187751
split-complementary
#221877 #775118 #3D7718
monochromatic
#070519 #130E44 #221877 #3122AA #4533D6

Accessibility & contrast

On white

14.33
#221877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#221877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221877
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221877#FFFFFF#000000##FFFFFF
##2218771.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002675
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #221877;
/* rgb */ color: rgb(34, 24, 119);
/* oklch */ color: oklch(30.1% 0.151 276.9);
Tailwind
colors: {
  custom: {
    50: '#6b579f',
    500: '#221877',
    950: '#000000',
  },
}
SCSS
$custom: #221877;
$custom-light: #6b579f;
$custom-dark: #000000;
JSON
{
  "hex": "#221877",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 246.316,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30103,
    "c": 0.15141,
    "h": 276.9
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#221877
secondary
#A1AC3F
accent
#E93ED7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #221877

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

Preview Lab → · Contrast checker → · Palette generator →

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