#21386E#21386E

#21386E is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.3% C 0.098 H 264.6°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#21386E
RGBrgb(33, 56, 110)
HSLhsl(222, 54%, 28%)
HSVhsv(222, 70%, 43%)
CMYKcmyk(70%, 49.1%, 0%, 56.9%)
CIE-LABlab(24.57, 10.66, -34.08)
CIE-LCHlch(24.57, 35.71, 287.37°)
OKLaboklab(35.34% -0.0093 -0.0975)
OKLCHoklch(35.34% 0.098 264.6)
XYZxyz(4.8549, 4.2770, 15.3185)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21386E #6E5721
analogous
#215E6E #21386E #30216E
triadic
#21386E #6E2138 #386E21
tetradic
#21386E #6E215E #6E5721 #216E30
square
#21386E #6E215E #6E5721 #216E30
split-complementary
#21386E #6E3021 #5E6E21
monochromatic
#070C18 #13203F #21386E #2F509D #436AC7

Accessibility & contrast

On white

11.32
#21386E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#21386E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21386E
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21386E#FFFFFF#000000##FFFFFF
##21386E1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3E70
Deuteranopia (green-blind)
#0D376D
Tritanopia (blue-blind)
#00444D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21386e;
/* rgb */ color: rgb(33, 56, 110);
/* oklch */ color: oklch(35.3% 0.098 264.6);
Tailwind
colors: {
  custom: {
    50: '#666e98',
    500: '#21386e',
    950: '#000000',
  },
}
SCSS
$custom: #21386e;
$custom-light: #666e98;
$custom-dark: #000000;
JSON
{
  "hex": "#21386e",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 110
  },
  "hsl": {
    "h": 222.078,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35339,
    "c": 0.09797,
    "h": 264.6
  },
  "luminance": 0.04277
}

Semantic roles & 50–950 ramp

primary
#21386E
secondary
#A28749
accent
#B14BDD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070D
muted
#7A7A7E

Preview Lab

Preview with #21386E

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

Preview Lab → · Contrast checker → · Palette generator →

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