#21407C#21407C

#21407C is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.3% C 0.108 H 262.0°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#21407C
RGBrgb(33, 64, 124)
HSLhsl(220, 58%, 31%)
HSVhsv(220, 73%, 49%)
CMYKcmyk(73.4%, 48.4%, 0%, 51.4%)
CIE-LABlab(27.97, 10.65, -37.50)
CIE-LCHlch(27.97, 38.98, 285.86°)
OKLaboklab(38.25% -0.015 -0.1074)
OKLCHoklch(38.25% 0.108 262)
XYZxyz(6.0974, 5.4447, 19.7945)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21407C #7C5D21
analogous
#216D7C #21407C #2F217C
triadic
#21407C #7C2140 #407C21
tetradic
#21407C #7C216D #7C5D21 #217C2F
square
#21407C #7C216D #7C5D21 #217C2F
split-complementary
#21407C #7C2F21 #6D7C21
monochromatic
#070E1B #14274C #21407C #2E59AC #4976CF

Accessibility & contrast

On white

10.05
#21407C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#21407C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21407C
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21407C#FFFFFF#000000##FFFFFF
##21407C1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467E
Deuteranopia (green-blind)
#0C3E7B
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #21407c;
/* rgb */ color: rgb(33, 64, 124);
/* oklch */ color: oklch(38.3% 0.108 262.0);
Tailwind
colors: {
  custom: {
    50: '#6974a2',
    500: '#21407c',
    950: '#000000',
  },
}
SCSS
$custom: #21407c;
$custom-light: #6974a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21407c",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 219.56,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38254,
    "c": 0.10848,
    "h": 262
  },
  "luminance": 0.05445
}

Semantic roles & 50–950 ramp

primary
#21407C
secondary
#AF8C4A
accent
#AD47E1
background
#F6F7FA
surface
#EBEDF3
border
#C6C8CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #21407C

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

Preview Lab → · Contrast checker → · Palette generator →

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