#221779#221779

#221779 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.155 H 276.8°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#221779
RGBrgb(34, 23, 121)
HSLhsl(247, 68%, 28%)
HSVhsv(247, 81%, 47%)
CMYKcmyk(71.9%, 81%, 0%, 52.5%)
CIE-LABlab(17.15, 36.88, -53.23)
CIE-LCHlch(17.15, 64.76, 304.72°)
OKLaboklab(30.2% 0.0182 -0.1538)
OKLCHoklch(30.2% 0.155 276.8)
XYZxyz(4.4161, 2.3329, 18.3030)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221779 #6E7917
analogous
#173D79 #221779 #531779
triadic
#221779 #792217 #177922
tetradic
#221779 #79173D #6E7917 #177953
square
#221779 #79173D #6E7917 #177953
split-complementary
#221779 #795317 #3D7917
monochromatic
#07051A #140D46 #221779 #3021AC #4532D8

Accessibility & contrast

On white

14.32
#221779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221779
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221779#FFFFFF#000000##FFFFFF
##2217791.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7C
Deuteranopia (green-blind)
#002677
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #221779;
/* rgb */ color: rgb(34, 23, 121);
/* oklch */ color: oklch(30.2% 0.155 276.8);
Tailwind
colors: {
  custom: {
    50: '#6c57a1',
    500: '#221779',
    950: '#000000',
  },
}
SCSS
$custom: #221779;
$custom-light: #6c57a1;
$custom-dark: #000000;
JSON
{
  "hex": "#221779",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 246.735,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30198,
    "c": 0.15492,
    "h": 276.8
  },
  "luminance": 0.02333
}

Semantic roles & 50–950 ramp

primary
#221779
secondary
#A1AE3E
accent
#EB3DD7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #221779

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

Preview Lab → · Contrast checker → · Palette generator →

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