#221979#221979

#221979 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.153 H 276.4°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#221979
RGBrgb(34, 25, 121)
HSLhsl(246, 66%, 29%)
HSVhsv(246, 79%, 47%)
CMYKcmyk(71.9%, 79.3%, 0%, 52.5%)
CIE-LABlab(17.53, 35.78, -52.59)
CIE-LCHlch(17.53, 63.61, 304.23°)
OKLaboklab(30.47% 0.0172 -0.152)
OKLCHoklch(30.47% 0.153 276.4)
XYZxyz(4.4574, 2.4154, 18.3168)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221979 #707919
analogous
#194079 #221979 #521979
triadic
#221979 #792219 #197922
tetradic
#221979 #791940 #707919 #197952
square
#221979 #791940 #707919 #197952
split-complementary
#221979 #795219 #407919
monochromatic
#070519 #140F46 #221979 #3023AC #4637D6

Accessibility & contrast

On white

14.16
#221979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#221979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221979
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221979#FFFFFF#000000##FFFFFF
##2219791.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002777
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #221979;
/* rgb */ color: rgb(34, 25, 121);
/* oklch */ color: oklch(30.5% 0.153 276.4);
Tailwind
colors: {
  custom: {
    50: '#6c58a1',
    500: '#221979',
    950: '#000000',
  },
}
SCSS
$custom: #221979;
$custom-light: #6c58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#221979",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 245.625,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30469,
    "c": 0.15298,
    "h": 276.4
  },
  "luminance": 0.02416
}

Semantic roles & 50–950 ramp

primary
#221979
secondary
#A3AE40
accent
#E93FD9
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #221979

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

Preview Lab → · Contrast checker → · Palette generator →

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