#21387E#21387E

#21387E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.6% C 0.122 H 266.6°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#21387E
RGBrgb(33, 56, 126)
HSLhsl(225, 58%, 31%)
HSVhsv(225, 74%, 49%)
CMYKcmyk(73.8%, 55.6%, 0%, 50.6%)
CIE-LABlab(25.74, 17.02, -42.35)
CIE-LCHlch(25.74, 45.64, 291.90°)
OKLaboklab(36.6% -0.0073 -0.1219)
OKLCHoklch(36.6% 0.122 266.6)
XYZxyz(5.8060, 4.6574, 20.3276)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21387E #7E6721
analogous
#21667E #21387E #38217E
triadic
#21387E #7E2138 #387E21
tetradic
#21387E #7E2166 #7E6721 #217E38
square
#21387E #7E2166 #7E6721 #217E38
split-complementary
#21387E #7E3821 #667E21
monochromatic
#080D1D #14224E #21387E #2E4EAE #4A6BD0

Accessibility & contrast

On white

10.87
#21387E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#21387E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21387E
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21387E#FFFFFF#000000##FFFFFF
##21387E1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044180
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #21387e;
/* rgb */ color: rgb(33, 56, 126);
/* oklch */ color: oklch(36.6% 0.122 266.6);
Tailwind
colors: {
  custom: {
    50: '#6a6ea4',
    500: '#21387e',
    950: '#000000',
  },
}
SCSS
$custom: #21387e;
$custom-light: #6a6ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#21387e",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 225.161,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36601,
    "c": 0.12209,
    "h": 266.6
  },
  "luminance": 0.04658
}

Semantic roles & 50–950 ramp

primary
#21387E
secondary
#B1974A
accent
#BB46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #21387E

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

Preview Lab → · Contrast checker → · Palette generator →

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