#21417D#21417D

#21417D is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.6% C 0.109 H 261.6°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#21417D
RGBrgb(33, 65, 125)
HSLhsl(219, 58%, 31%)
HSVhsv(219, 74%, 49%)
CMYKcmyk(73.6%, 48%, 0%, 51%)
CIE-LABlab(28.34, 10.36, -37.53)
CIE-LCHlch(28.34, 38.93, 285.43°)
OKLaboklab(38.56% -0.0158 -0.1075)
OKLCHoklch(38.56% 0.109 261.6)
XYZxyz(6.2178, 5.5839, 20.1482)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21417D #7D5D21
analogous
#216F7D #21417D #2F217D
triadic
#21417D #7D2141 #417D21
tetradic
#21417D #7D216F #7D5D21 #217D2F
square
#21417D #7D216F #7D5D21 #217D2F
split-complementary
#21417D #7D2F21 #6F7D21
monochromatic
#070F1C #14284D #21417D #2E5AAD #4978CF

Accessibility & contrast

On white

9.92
#21417D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#21417D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21417D
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21417D#FFFFFF#000000##FFFFFF
##21417D1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477F
Deuteranopia (green-blind)
#0E3F7C
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #21417d;
/* rgb */ color: rgb(33, 65, 125);
/* oklch */ color: oklch(38.6% 0.109 261.6);
Tailwind
colors: {
  custom: {
    50: '#6975a3',
    500: '#21417d',
    950: '#000000',
  },
}
SCSS
$custom: #21417d;
$custom-light: #6975a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21417d",
  "rgb": {
    "r": 33,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 219.13,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38561,
    "c": 0.10867,
    "h": 261.6
  },
  "luminance": 0.05585
}

Semantic roles & 50–950 ramp

primary
#21417D
secondary
#B08C4A
accent
#AB46E1
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #21417D

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

Preview Lab → · Contrast checker → · Palette generator →

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