#221777#221777

#221777 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.152 H 277.1°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#221777
RGBrgb(34, 23, 119)
HSLhsl(247, 68%, 28%)
HSVhsv(247, 81%, 47%)
CMYKcmyk(71.4%, 80.7%, 0%, 53.3%)
CIE-LABlab(16.91, 36.22, -52.33)
CIE-LCHlch(16.91, 63.64, 304.69°)
OKLaboklab(29.97% 0.0188 -0.1512)
OKLCHoklch(29.97% 0.152 277.1)
XYZxyz(4.2948, 2.2844, 17.6638)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221777 #6C7717
analogous
#173C77 #221777 #521777
triadic
#221777 #772217 #177722
tetradic
#221777 #77173C #6C7717 #177752
square
#221777 #77173C #6C7717 #177752
split-complementary
#221777 #775217 #3C7717
monochromatic
#07051A #130D44 #221777 #3121AA #4431D7

Accessibility & contrast

On white

14.41
#221777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#221777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221777
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221777#FFFFFF#000000##FFFFFF
##2217771.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #221777;
/* rgb */ color: rgb(34, 23, 119);
/* oklch */ color: oklch(30.0% 0.152 277.1);
Tailwind
colors: {
  custom: {
    50: '#6b579f',
    500: '#221777',
    950: '#000000',
  },
}
SCSS
$custom: #221777;
$custom-light: #6b579f;
$custom-dark: #000000;
JSON
{
  "hex": "#221777",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 246.875,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29968,
    "c": 0.15238,
    "h": 277.1
  },
  "luminance": 0.02285
}

Semantic roles & 50–950 ramp

primary
#221777
secondary
#A0AC3E
accent
#EA3DD7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #221777

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

Preview Lab → · Contrast checker → · Palette generator →

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