#21407B#21407B

#21407B is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.2% C 0.107 H 261.8°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#21407B
RGBrgb(33, 64, 123)
HSLhsl(219, 58%, 31%)
HSVhsv(219, 73%, 48%)
CMYKcmyk(73.2%, 48%, 0%, 51.8%)
CIE-LABlab(27.90, 10.25, -36.98)
CIE-LCHlch(27.90, 38.37, 285.49°)
OKLaboklab(38.18% -0.0152 -0.1059)
OKLCHoklch(38.18% 0.107 261.8)
XYZxyz(6.0345, 5.4196, 19.4631)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21407B #7B5C21
analogous
#216D7B #21407B #2F217B
triadic
#21407B #7B2140 #407B21
tetradic
#21407B #7B216D #7B5C21 #217B2F
square
#21407B #7B216D #7B5C21 #217B2F
split-complementary
#21407B #7B2F21 #6D7B21
monochromatic
#070E1A #14274B #21407B #2E59AB #4876CE

Accessibility & contrast

On white

10.08
#21407B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#21407B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21407B
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21407B#FFFFFF#000000##FFFFFF
##21407B1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467D
Deuteranopia (green-blind)
#0E3E7A
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #21407b;
/* rgb */ color: rgb(33, 64, 123);
/* oklch */ color: oklch(38.2% 0.107 261.8);
Tailwind
colors: {
  custom: {
    50: '#6874a1',
    500: '#21407b',
    950: '#000000',
  },
}
SCSS
$custom: #21407b;
$custom-light: #6874a1;
$custom-dark: #000000;
JSON
{
  "hex": "#21407b",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 219.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3818,
    "c": 0.107,
    "h": 261.8
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#21407B
secondary
#AE8B4A
accent
#AC47E1
background
#F6F7FA
surface
#EBEDF3
border
#C6C8CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #21407B

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

Preview Lab → · Contrast checker → · Palette generator →

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