#21477D#21477D

#21477D is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.0% C 0.101 H 257.6°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#21477D
RGBrgb(33, 71, 125)
HSLhsl(215, 58%, 31%)
HSVhsv(215, 74%, 49%)
CMYKcmyk(73.6%, 43.2%, 0%, 51%)
CIE-LABlab(30.18, 6.26, -34.57)
CIE-LCHlch(30.18, 35.14, 280.26°)
OKLaboklab(39.98% -0.0218 -0.0987)
OKLCHoklch(39.98% 0.101 257.6)
XYZxyz(6.5808, 6.3098, 20.2691)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21477D #7D5721
analogous
#21757D #21477D #29217D
triadic
#21477D #7D2147 #477D21
tetradic
#21477D #7D2175 #7D5721 #217D29
square
#21477D #7D2175 #7D5721 #217D29
split-complementary
#21477D #7D2921 #757D21
monochromatic
#07101C #142B4D #21477D #2E63AD #4981CF

Accessibility & contrast

On white

9.28
#21477D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#21477D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21477D
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21477D#FFFFFF#000000##FFFFFF
##21477D1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4C7F
Deuteranopia (green-blind)
#1E437C
Tritanopia (blue-blind)
#00545C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #21477d;
/* rgb */ color: rgb(33, 71, 125);
/* oklch */ color: oklch(40.0% 0.101 257.6);
Tailwind
colors: {
  custom: {
    50: '#6979a3',
    500: '#21477d',
    950: '#000000',
  },
}
SCSS
$custom: #21477d;
$custom-light: #6979a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21477d",
  "rgb": {
    "r": 33,
    "g": 71,
    "b": 125
  },
  "hsl": {
    "h": 215.217,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.39984,
    "c": 0.1011,
    "h": 257.6
  },
  "luminance": 0.0631
}

Semantic roles & 50–950 ramp

primary
#21477D
secondary
#B0864A
accent
#A146E1
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #21477D

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

Preview Lab → · Contrast checker → · Palette generator →

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