#21487F#21487F

#21487F is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.4% C 0.103 H 257.5°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#21487F
RGBrgb(33, 72, 127)
HSLhsl(215, 59%, 31%)
HSVhsv(215, 74%, 50%)
CMYKcmyk(74%, 43.3%, 0%, 50.2%)
CIE-LABlab(30.62, 6.37, -35.13)
CIE-LCHlch(30.62, 35.70, 280.28°)
OKLaboklab(40.36% -0.0223 -0.1003)
OKLCHoklch(40.36% 0.103 257.5)
XYZxyz(6.7739, 6.4896, 20.9702)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21487F #7F5821
analogous
#21777F #21487F #29217F
triadic
#21487F #7F2148 #487F21
tetradic
#21487F #7F2177 #7F5821 #217F29
square
#21487F #7F2177 #7F5821 #217F29
split-complementary
#21487F #7F2921 #777F21
monochromatic
#08111E #142C4E #21487F #2E64B0 #4A82D0

Accessibility & contrast

On white

9.14
#21487F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#21487F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21487F
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21487F#FFFFFF#000000##FFFFFF
##21487F1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4D81
Deuteranopia (green-blind)
#1E447E
Tritanopia (blue-blind)
#00555D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #21487f;
/* rgb */ color: rgb(33, 72, 127);
/* oklch */ color: oklch(40.4% 0.103 257.5);
Tailwind
colors: {
  custom: {
    50: '#697aa4',
    500: '#21487f',
    950: '#000000',
  },
}
SCSS
$custom: #21487f;
$custom-light: #697aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#21487f",
  "rgb": {
    "r": 33,
    "g": 72,
    "b": 127
  },
  "hsl": {
    "h": 215.106,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40362,
    "c": 0.10279,
    "h": 257.5
  },
  "luminance": 0.0649
}

Semantic roles & 50–950 ramp

primary
#21487F
secondary
#B2874A
accent
#A146E2
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #21487F

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

Preview Lab → · Contrast checker → · Palette generator →

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