#221879#221879

#221879 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.154 H 276.6°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#221879
RGBrgb(34, 24, 121)
HSLhsl(246, 67%, 28%)
HSVhsv(246, 80%, 47%)
CMYKcmyk(71.9%, 80.2%, 0%, 52.5%)
CIE-LABlab(17.34, 36.34, -52.92)
CIE-LCHlch(17.34, 64.19, 304.48°)
OKLaboklab(30.33% 0.0177 -0.1529)
OKLCHoklch(30.33% 0.154 276.6)
XYZxyz(4.4364, 2.3734, 18.3098)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221879 #6F7918
analogous
#183E79 #221879 #521879
triadic
#221879 #792218 #187922
tetradic
#221879 #79183E #6F7918 #187952
square
#221879 #79183E #6F7918 #187952
split-complementary
#221879 #795218 #3E7918
monochromatic
#07051A #140E46 #221879 #3022AC #4535D7

Accessibility & contrast

On white

14.24
#221879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221879
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221879#FFFFFF#000000##FFFFFF
##2218791.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #221879;
/* rgb */ color: rgb(34, 24, 121);
/* oklch */ color: oklch(30.3% 0.154 276.6);
Tailwind
colors: {
  custom: {
    50: '#6c57a1',
    500: '#221879',
    950: '#000000',
  },
}
SCSS
$custom: #221879;
$custom-light: #6c57a1;
$custom-dark: #000000;
JSON
{
  "hex": "#221879",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 246.186,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30331,
    "c": 0.15396,
    "h": 276.6
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#221879
secondary
#A2AE3F
accent
#EA3ED8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #221879

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

Preview Lab → · Contrast checker → · Palette generator →

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