#21387A#21387A

#21387A is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.3% C 0.116 H 266.2°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#21387A
RGBrgb(33, 56, 122)
HSLhsl(224, 57%, 30%)
HSVhsv(224, 73%, 48%)
CMYKcmyk(73%, 54.1%, 0%, 52.2%)
CIE-LABlab(25.43, 15.43, -40.32)
CIE-LCHlch(25.43, 43.17, 290.94°)
OKLaboklab(36.27% -0.0077 -0.1159)
OKLCHoklch(36.27% 0.116 266.2)
XYZxyz(5.5530, 4.5563, 18.9954)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21387A #7A6321
analogous
#21647A #21387A #36217A
triadic
#21387A #7A2138 #387A21
tetradic
#21387A #7A2164 #7A6321 #217A36
square
#21387A #7A2164 #7A6321 #217A36
split-complementary
#21387A #7A3621 #647A21
monochromatic
#070C1A #14224A #21387A #2E4EAA #486ACD

Accessibility & contrast

On white

10.99
#21387A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#21387A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21387A
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21387A#FFFFFF#000000##FFFFFF
##21387A1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D417C
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #21387a;
/* rgb */ color: rgb(33, 56, 122);
/* oklch */ color: oklch(36.3% 0.116 266.2);
Tailwind
colors: {
  custom: {
    50: '#696ea1',
    500: '#21387a',
    950: '#000000',
  },
}
SCSS
$custom: #21387a;
$custom-light: #696ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#21387a",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 122
  },
  "hsl": {
    "h": 224.494,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36274,
    "c": 0.11615,
    "h": 266.2
  },
  "luminance": 0.04557
}

Semantic roles & 50–950 ramp

primary
#21387A
secondary
#AD934A
accent
#B947E1
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #21387A

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

Preview Lab → · Contrast checker → · Palette generator →

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