#21477F#21477F

#21477F is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.1% C 0.104 H 258.2°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#21477F
RGBrgb(33, 71, 127)
HSLhsl(216, 59%, 31%)
HSVhsv(216, 74%, 50%)
CMYKcmyk(74%, 44.1%, 0%, 50.2%)
CIE-LABlab(30.31, 7.05, -35.62)
CIE-LCHlch(30.31, 36.31, 281.19°)
OKLaboklab(40.12% -0.0213 -0.1018)
OKLCHoklch(40.12% 0.104 258.2)
XYZxyz(6.7098, 6.3614, 20.9488)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21477F #7F5921
analogous
#21767F #21477F #2A217F
triadic
#21477F #7F2147 #477F21
tetradic
#21477F #7F2176 #7F5921 #217F2A
square
#21477F #7F2176 #7F5921 #217F2A
split-complementary
#21477F #7F2A21 #767F21
monochromatic
#08111E #142C4E #21477F #2E62B0 #4A80D0

Accessibility & contrast

On white

9.24
#21477F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21477F
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21477F#FFFFFF#000000##FFFFFF
##21477F1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21477f;
/* rgb */ color: rgb(33, 71, 127);
/* oklch */ color: oklch(40.1% 0.104 258.2);
Tailwind
colors: {
  custom: {
    50: '#6979a4',
    500: '#21477f',
    950: '#000000',
  },
}
SCSS
$custom: #21477f;
$custom-light: #6979a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21477f",
  "rgb": {
    "r": 33,
    "g": 71,
    "b": 127
  },
  "hsl": {
    "h": 215.745,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40122,
    "c": 0.10402,
    "h": 258.2
  },
  "luminance": 0.06362
}

Semantic roles & 50–950 ramp

primary
#21477F
secondary
#B2884A
accent
#A346E2
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #21477F

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

Preview Lab → · Contrast checker → · Palette generator →

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