#21407D#21407D

#21407D is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.3% C 0.110 H 262.2°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#21407D
RGBrgb(33, 64, 125)
HSLhsl(220, 58%, 31%)
HSVhsv(220, 74%, 49%)
CMYKcmyk(73.6%, 48.8%, 0%, 51%)
CIE-LABlab(28.03, 11.05, -38.01)
CIE-LCHlch(28.03, 39.59, 286.21°)
OKLaboklab(38.33% -0.0148 -0.109)
OKLCHoklch(38.33% 0.11 262.2)
XYZxyz(6.1609, 5.4701, 20.1292)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21407D #7D5E21
analogous
#216E7D #21407D #30217D
triadic
#21407D #7D2140 #407D21
tetradic
#21407D #7D216E #7D5E21 #217D30
square
#21407D #7D216E #7D5E21 #217D30
split-complementary
#21407D #7D3021 #6E7D21
monochromatic
#070E1C #14274D #21407D #2E59AD #4976CF

Accessibility & contrast

On white

10.03
#21407D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21407D
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21407D#FFFFFF#000000##FFFFFF
##21407D1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20477F
Deuteranopia (green-blind)
#0A3E7C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #21407d;
/* rgb */ color: rgb(33, 64, 125);
/* oklch */ color: oklch(38.3% 0.110 262.2);
Tailwind
colors: {
  custom: {
    50: '#6974a3',
    500: '#21407d',
    950: '#000000',
  },
}
SCSS
$custom: #21407d;
$custom-light: #6974a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21407d",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 219.783,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38328,
    "c": 0.10998,
    "h": 262.2
  },
  "luminance": 0.05471
}

Semantic roles & 50–950 ramp

primary
#21407D
secondary
#B08E4A
accent
#AD46E1
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #21407D

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

Preview Lab → · Contrast checker → · Palette generator →

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