#21407E#21407E

#21407E is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.111 H 262.4°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#21407E
RGBrgb(33, 64, 126)
HSLhsl(220, 58%, 31%)
HSVhsv(220, 74%, 49%)
CMYKcmyk(73.8%, 49.2%, 0%, 50.6%)
CIE-LABlab(28.10, 11.45, -38.53)
CIE-LCHlch(28.10, 40.19, 286.55°)
OKLaboklab(38.4% -0.0147 -0.1105)
OKLCHoklch(38.4% 0.111 262.4)
XYZxyz(6.2251, 5.4958, 20.4673)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21407E #7E5F21
analogous
#216E7E #21407E #30217E
triadic
#21407E #7E2140 #407E21
tetradic
#21407E #7E216E #7E5F21 #217E30
square
#21407E #7E216E #7E5F21 #217E30
split-complementary
#21407E #7E3021 #6E7E21
monochromatic
#080F1D #14274E #21407E #2E59AE #4A76D0

Accessibility & contrast

On white

10.00
#21407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#21407E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21407E
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21407E#FFFFFF#000000##FFFFFF
##21407E1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4780
Deuteranopia (green-blind)
#073E7D
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #21407e;
/* rgb */ color: rgb(33, 64, 126);
/* oklch */ color: oklch(38.4% 0.111 262.4);
Tailwind
colors: {
  custom: {
    50: '#6974a4',
    500: '#21407e',
    950: '#000000',
  },
}
SCSS
$custom: #21407e;
$custom-light: #6974a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21407e",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 220,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38403,
    "c": 0.11145,
    "h": 262.4
  },
  "luminance": 0.05496
}

Semantic roles & 50–950 ramp

primary
#21407E
secondary
#B18F4A
accent
#AE46E2
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #21407E

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

Preview Lab → · Contrast checker → · Palette generator →

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