#21407F#21407F

#21407F is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.5% C 0.113 H 262.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#21407F
RGBrgb(33, 64, 127)
HSLhsl(220, 59%, 31%)
HSVhsv(220, 74%, 50%)
CMYKcmyk(74%, 49.6%, 0%, 50.2%)
CIE-LABlab(28.17, 11.84, -39.04)
CIE-LCHlch(28.17, 40.80, 286.88°)
OKLaboklab(38.48% -0.0145 -0.112)
OKLCHoklch(38.48% 0.113 262.6)
XYZxyz(6.2900, 5.5218, 20.8089)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21407F #7F6021
analogous
#216F7F #21407F #31217F
triadic
#21407F #7F2140 #407F21
tetradic
#21407F #7F216F #7F6021 #217F31
square
#21407F #7F216F #7F6021 #217F31
split-complementary
#21407F #7F3121 #6F7F21
monochromatic
#080F1E #14284E #21407F #2E58B0 #4A76D0

Accessibility & contrast

On white

9.98
#21407F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21407F
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21407F#FFFFFF#000000##FFFFFF
##21407F1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4781
Deuteranopia (green-blind)
#043E7E
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #21407f;
/* rgb */ color: rgb(33, 64, 127);
/* oklch */ color: oklch(38.5% 0.113 262.6);
Tailwind
colors: {
  custom: {
    50: '#6974a4',
    500: '#21407f',
    950: '#000000',
  },
}
SCSS
$custom: #21407f;
$custom-light: #6974a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21407f",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 220.213,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38478,
    "c": 0.11294,
    "h": 262.6
  },
  "luminance": 0.05522
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21407F

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

Preview Lab → · Contrast checker → · Palette generator →

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