#21479E#21479E

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

Color values

HEX#21479E
RGBrgb(33, 71, 158)
HSLhsl(222, 65%, 37%)
HSVhsv(222, 79%, 62%)
CMYKcmyk(79.1%, 55.1%, 0%, 38%)
CIE-LABlab(32.47, 19.37, -51.13)
CIE-LCHlch(32.47, 54.68, 290.75°)
OKLaboklab(42.47% -0.0167 -0.1474)
OKLCHoklch(42.47% 0.148 263.5)
XYZxyz(9.0498, 7.2974, 33.2727)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21479E #9E7821
analogous
#21869E #21479E #3A219E
triadic
#21479E #9E2147 #479E21
tetradic
#21479E #9E2186 #9E7821 #219E3A
square
#21479E #9E2186 #9E7821 #219E3A
split-complementary
#21479E #9E3A21 #869E21
monochromatic
#0C1A39 #16306B #21479E #2C5ED1 #5C83DD

Accessibility & contrast

On white

8.54
#21479E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#21479E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21479E
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21479E#FFFFFF#000000##FFFFFF
##21479E1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21479e;
/* rgb */ color: rgb(33, 71, 158);
/* oklch */ color: oklch(42.5% 0.148 263.5);
Tailwind
colors: {
  custom: {
    50: '#7179bb',
    500: '#21479e',
    950: '#000000',
  },
}
SCSS
$custom: #21479e;
$custom-light: #7179bb;
$custom-dark: #000000;
JSON
{
  "hex": "#21479e",
  "rgb": {
    "r": 33,
    "g": 71,
    "b": 158
  },
  "hsl": {
    "h": 221.76,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42474,
    "c": 0.14838,
    "h": 263.5
  },
  "luminance": 0.07298
}

Semantic roles & 50–950 ramp

primary
#21479E
secondary
#C1A259
accent
#B53FE8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #21479E

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

Preview Lab → · Contrast checker → · Palette generator →

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