#21479A#21479A

#21479A is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.1% C 0.143 H 263.1°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#21479A
RGBrgb(33, 71, 154)
HSLhsl(221, 65%, 37%)
HSVhsv(221, 79%, 60%)
CMYKcmyk(78.6%, 53.9%, 0%, 39.6%)
CIE-LABlab(32.17, 17.79, -49.20)
CIE-LCHlch(32.17, 52.32, 289.88°)
OKLaboklab(42.15% -0.017 -0.1418)
OKLCHoklch(42.15% 0.143 263.1)
XYZxyz(8.7111, 7.1619, 31.4889)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21479A #9A7421
analogous
#21849A #21479A #38219A
triadic
#21479A #9A2147 #479A21
tetradic
#21479A #9A2184 #9A7421 #219A38
square
#21479A #9A2184 #9A7421 #219A38
split-complementary
#21479A #9A3821 #849A21
monochromatic
#0B1935 #163068 #21479A #2C5ECC #5A83DC

Accessibility & contrast

On white

8.63
#21479A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#21479A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21479A
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21479A#FFFFFF#000000##FFFFFF
##21479A1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08529D
Deuteranopia (green-blind)
#004698
Tritanopia (blue-blind)
#005B69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #21479a;
/* rgb */ color: rgb(33, 71, 154);
/* oklch */ color: oklch(42.1% 0.143 263.1);
Tailwind
colors: {
  custom: {
    50: '#7079b8',
    500: '#21479a',
    950: '#000000',
  },
}
SCSS
$custom: #21479a;
$custom-light: #7079b8;
$custom-dark: #000000;
JSON
{
  "hex": "#21479a",
  "rgb": {
    "r": 33,
    "g": 71,
    "b": 154
  },
  "hsl": {
    "h": 221.157,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4215,
    "c": 0.14278,
    "h": 263.1
  },
  "luminance": 0.07163
}

Semantic roles & 50–950 ramp

primary
#21479A
secondary
#C09F57
accent
#B340E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #21479A

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

Preview Lab → · Contrast checker → · Palette generator →

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