#21386F#21386F

#21386F is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.4% C 0.100 H 264.7°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#21386F
RGBrgb(33, 56, 111)
HSLhsl(222, 54%, 28%)
HSVhsv(222, 70%, 44%)
CMYKcmyk(70.3%, 49.5%, 0%, 56.5%)
CIE-LABlab(24.64, 11.06, -34.61)
CIE-LCHlch(24.64, 36.33, 287.72°)
OKLaboklab(35.41% -0.0091 -0.0991)
OKLCHoklch(35.41% 0.1 264.7)
XYZxyz(4.9096, 4.2989, 15.6069)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21386F #6F5821
analogous
#215F6F #21386F #31216F
triadic
#21386F #6F2138 #386F21
tetradic
#21386F #6F215F #6F5821 #216F31
square
#21386F #6F215F #6F5821 #216F31
split-complementary
#21386F #6F3121 #5F6F21
monochromatic
#070C18 #132040 #21386F #2F509E #436AC7

Accessibility & contrast

On white

11.29
#21386F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21386F
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21386F#FFFFFF#000000##FFFFFF
##21386F1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3E71
Deuteranopia (green-blind)
#0B376E
Tritanopia (blue-blind)
#00454E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21386f;
/* rgb */ color: rgb(33, 56, 111);
/* oklch */ color: oklch(35.4% 0.100 264.7);
Tailwind
colors: {
  custom: {
    50: '#666e99',
    500: '#21386f',
    950: '#000000',
  },
}
SCSS
$custom: #21386f;
$custom-light: #666e99;
$custom-dark: #000000;
JSON
{
  "hex": "#21386f",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 111
  },
  "hsl": {
    "h": 222.308,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35414,
    "c": 0.09951,
    "h": 264.7
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

primary
#21386F
secondary
#A38849
accent
#B24ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #21386F

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

Preview Lab → · Contrast checker → · Palette generator →

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