#221772#221772

#221772 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.146 H 277.9°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#221772
RGBrgb(34, 23, 114)
HSLhsl(247, 66%, 27%)
HSVhsv(247, 80%, 45%)
CMYKcmyk(70.2%, 79.8%, 0%, 55.3%)
CIE-LABlab(16.34, 34.55, -50.05)
CIE-LCHlch(16.34, 60.81, 304.62°)
OKLaboklab(29.4% 0.0201 -0.1446)
OKLCHoklch(29.4% 0.146 277.9)
XYZxyz(4.0024, 2.1674, 16.1238)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221772 #677217
analogous
#173A72 #221772 #501772
triadic
#221772 #722217 #177222
tetradic
#221772 #72173A #677217 #177250
square
#221772 #72173A #677217 #177250
split-complementary
#221772 #725017 #3A7217
monochromatic
#080519 #130D3F #221772 #3121A5 #432ED5

Accessibility & contrast

On white

14.65
#221772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#221772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221772
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221772#FFFFFF#000000##FFFFFF
##2217721.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #221772;
/* rgb */ color: rgb(34, 23, 114);
/* oklch */ color: oklch(29.4% 0.146 277.9);
Tailwind
colors: {
  custom: {
    50: '#6a569c',
    500: '#221772',
    950: '#000000',
  },
}
SCSS
$custom: #221772;
$custom-light: #6a569c;
$custom-dark: #000000;
JSON
{
  "hex": "#221772",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 247.253,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29397,
    "c": 0.14597,
    "h": 277.9
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

primary
#221772
secondary
#9BA83D
accent
#E93ED5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #221772

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

Preview Lab → · Contrast checker → · Palette generator →

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