#21417C#21417C

#21417C is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.5% C 0.107 H 261.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#21417C
RGBrgb(33, 65, 124)
HSLhsl(219, 58%, 31%)
HSVhsv(219, 73%, 49%)
CMYKcmyk(73.4%, 47.6%, 0%, 51.4%)
CIE-LABlab(28.27, 9.96, -37.01)
CIE-LCHlch(28.27, 38.32, 285.06°)
OKLaboklab(38.49% -0.016 -0.106)
OKLCHoklch(38.49% 0.107 261.4)
XYZxyz(6.1543, 5.5585, 19.8134)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21417C #7C5C21
analogous
#216E7C #21417C #2E217C
triadic
#21417C #7C2141 #417C21
tetradic
#21417C #7C216E #7C5C21 #217C2E
square
#21417C #7C216E #7C5C21 #217C2E
split-complementary
#21417C #7C2E21 #6E7C21
monochromatic
#070E1B #14284C #21417C #2E5AAC #4978CF

Accessibility & contrast

On white

9.94
#21417C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#21417C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21417C
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21417C#FFFFFF#000000##FFFFFF
##21417C1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477E
Deuteranopia (green-blind)
#103F7B
Tritanopia (blue-blind)
#004F58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #21417c;
/* rgb */ color: rgb(33, 65, 124);
/* oklch */ color: oklch(38.5% 0.107 261.4);
Tailwind
colors: {
  custom: {
    50: '#6975a2',
    500: '#21417c',
    950: '#000000',
  },
}
SCSS
$custom: #21417c;
$custom-light: #6975a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21417c",
  "rgb": {
    "r": 33,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 218.901,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38487,
    "c": 0.10719,
    "h": 261.4
  },
  "luminance": 0.05559
}

Semantic roles & 50–950 ramp

primary
#21417C
secondary
#AF8B4A
accent
#AB47E1
background
#F6F7FA
surface
#EBEDF3
border
#C6C8CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #21417C

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

Preview Lab → · Contrast checker → · Palette generator →

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