#21477E#21477E

#21477E is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.1% C 0.103 H 257.9°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#21477E
RGBrgb(33, 71, 126)
HSLhsl(215, 58%, 31%)
HSVhsv(215, 74%, 49%)
CMYKcmyk(73.8%, 43.7%, 0%, 50.6%)
CIE-LABlab(30.24, 6.65, -35.10)
CIE-LCHlch(30.24, 35.72, 280.73°)
OKLaboklab(40.05% -0.0215 -0.1003)
OKLCHoklch(40.05% 0.103 257.9)
XYZxyz(6.6450, 6.3355, 20.6073)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21477E #7E5821
analogous
#21757E #21477E #29217E
triadic
#21477E #7E2147 #477E21
tetradic
#21477E #7E2175 #7E5821 #217E29
square
#21477E #7E2175 #7E5821 #217E29
split-complementary
#21477E #7E2921 #757E21
monochromatic
#08101D #142C4E #21477E #2E62AE #4A80D0

Accessibility & contrast

On white

9.26
#21477E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#21477E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21477E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21477E#FFFFFF#000000##FFFFFF
##21477E1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21477e;
/* rgb */ color: rgb(33, 71, 126);
/* oklch */ color: oklch(40.1% 0.103 257.9);
Tailwind
colors: {
  custom: {
    50: '#6979a4',
    500: '#21477e',
    950: '#000000',
  },
}
SCSS
$custom: #21477e;
$custom-light: #6979a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21477e",
  "rgb": {
    "r": 33,
    "g": 71,
    "b": 126
  },
  "hsl": {
    "h": 215.484,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40053,
    "c": 0.10256,
    "h": 257.9
  },
  "luminance": 0.06336
}

Semantic roles & 50–950 ramp

primary
#21477E
secondary
#B1874A
accent
#A246E2
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #21477E

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

Preview Lab → · Contrast checker → · Palette generator →

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