#21387D#21387D

#21387D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.5% C 0.121 H 266.5°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#21387D
RGBrgb(33, 56, 125)
HSLhsl(225, 58%, 31%)
HSVhsv(225, 74%, 49%)
CMYKcmyk(73.6%, 55.2%, 0%, 51%)
CIE-LABlab(25.66, 16.62, -41.84)
CIE-LCHlch(25.66, 45.03, 291.67°)
OKLaboklab(36.52% -0.0074 -0.1204)
OKLCHoklch(36.52% 0.121 266.5)
XYZxyz(5.7418, 4.6318, 19.9895)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21387D #7D6621
analogous
#21667D #21387D #38217D
triadic
#21387D #7D2138 #387D21
tetradic
#21387D #7D2166 #7D6621 #217D38
square
#21387D #7D2166 #7D6621 #217D38
split-complementary
#21387D #7D3821 #667D21
monochromatic
#070D1C #14224D #21387D #2E4EAD #496BCF

Accessibility & contrast

On white

10.90
#21387D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21387D
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21387D#FFFFFF#000000##FFFFFF
##21387D1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06417F
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #21387d;
/* rgb */ color: rgb(33, 56, 125);
/* oklch */ color: oklch(36.5% 0.121 266.5);
Tailwind
colors: {
  custom: {
    50: '#696ea3',
    500: '#21387d',
    950: '#000000',
  },
}
SCSS
$custom: #21387d;
$custom-light: #696ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#21387d",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 125
  },
  "hsl": {
    "h": 225,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36518,
    "c": 0.12061,
    "h": 266.5
  },
  "luminance": 0.04632
}

Semantic roles & 50–950 ramp

primary
#21387D
secondary
#B0964A
accent
#BB46E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #21387D

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

Preview Lab → · Contrast checker → · Palette generator →

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