#21479D#21479D

#21479D is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.4% C 0.147 H 263.5°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#21479D
RGBrgb(33, 71, 157)
HSLhsl(222, 65%, 37%)
HSVhsv(222, 79%, 62%)
CMYKcmyk(79%, 54.8%, 0%, 38.4%)
CIE-LABlab(32.40, 18.98, -50.65)
CIE-LCHlch(32.40, 54.09, 290.54°)
OKLaboklab(42.39% -0.0168 -0.146)
OKLCHoklch(42.39% 0.147 263.5)
XYZxyz(8.9641, 7.2631, 32.8212)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21479D #9D7721
analogous
#21859D #21479D #39219D
triadic
#21479D #9D2147 #479D21
tetradic
#21479D #9D2185 #9D7721 #219D39
square
#21479D #9D2185 #9D7721 #219D39
split-complementary
#21479D #9D3921 #859D21
monochromatic
#0C1938 #16306A #21479D #2C5ED0 #5C83DD

Accessibility & contrast

On white

8.56
#21479D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#21479D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21479D
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21479D#FFFFFF#000000##FFFFFF
##21479D1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #21479d;
/* rgb */ color: rgb(33, 71, 157);
/* oklch */ color: oklch(42.4% 0.147 263.5);
Tailwind
colors: {
  custom: {
    50: '#7079bb',
    500: '#21479d',
    950: '#000000',
  },
}
SCSS
$custom: #21479d;
$custom-light: #7079bb;
$custom-dark: #000000;
JSON
{
  "hex": "#21479d",
  "rgb": {
    "r": 33,
    "g": 71,
    "b": 157
  },
  "hsl": {
    "h": 221.613,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42393,
    "c": 0.14699,
    "h": 263.5
  },
  "luminance": 0.07264
}

Semantic roles & 50–950 ramp

primary
#21479D
secondary
#C1A159
accent
#B540E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #21479D

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

Preview Lab → · Contrast checker → · Palette generator →

#21479D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva