#21387C#21387C

#21387C is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.4% C 0.119 H 266.4°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#21387C
RGBrgb(33, 56, 124)
HSLhsl(225, 58%, 31%)
HSVhsv(225, 73%, 49%)
CMYKcmyk(73.4%, 54.8%, 0%, 51.4%)
CIE-LABlab(25.58, 16.23, -41.34)
CIE-LCHlch(25.58, 44.41, 291.43°)
OKLaboklab(36.44% -0.0075 -0.1189)
OKLCHoklch(36.44% 0.119 266.4)
XYZxyz(5.6782, 4.6063, 19.6547)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21387C #7C6521
analogous
#21657C #21387C #37217C
triadic
#21387C #7C2138 #387C21
tetradic
#21387C #7C2165 #7C6521 #217C37
square
#21387C #7C2165 #7C6521 #217C37
split-complementary
#21387C #7C3721 #657C21
monochromatic
#070C1B #14224C #21387C #2E4EAC #496BCF

Accessibility & contrast

On white

10.93
#21387C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#21387C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21387C
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21387C#FFFFFF#000000##FFFFFF
##21387C1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09417E
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #21387c;
/* rgb */ color: rgb(33, 56, 124);
/* oklch */ color: oklch(36.4% 0.119 266.4);
Tailwind
colors: {
  custom: {
    50: '#696ea2',
    500: '#21387c',
    950: '#000000',
  },
}
SCSS
$custom: #21387c;
$custom-light: #696ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#21387c",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 124
  },
  "hsl": {
    "h": 224.835,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36436,
    "c": 0.11912,
    "h": 266.4
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

primary
#21387C
secondary
#AF954A
accent
#BA47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #21387C

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

Preview Lab → · Contrast checker → · Palette generator →

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