#21388B#21388B

#21388B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.141 H 267.3°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#21388B
RGBrgb(33, 56, 139)
HSLhsl(227, 62%, 34%)
HSVhsv(227, 76%, 55%)
CMYKcmyk(76.3%, 59.7%, 0%, 45.5%)
CIE-LABlab(26.78, 22.16, -48.77)
CIE-LCHlch(26.78, 53.57, 294.43°)
OKLaboklab(37.71% -0.0065 -0.1407)
OKLCHoklch(37.71% 0.141 267.3)
XYZxyz(6.7000, 5.0150, 25.0360)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21388B #8B7421
analogous
#216D8B #21388B #3F218B
triadic
#21388B #8B2138 #388B21
tetradic
#21388B #8B216D #8B7421 #218B3F
square
#21388B #8B216D #8B7421 #218B3F
split-complementary
#21388B #8B3F21 #6D8B21
monochromatic
#0A1028 #15245A #21388B #2D4CBC #516ED6

Accessibility & contrast

On white

10.48
#21388B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#21388B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21388B
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21388B#FFFFFF#000000##FFFFFF
##21388B1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21388b;
/* rgb */ color: rgb(33, 56, 139);
/* oklch */ color: oklch(37.7% 0.141 267.3);
Tailwind
colors: {
  custom: {
    50: '#6d6eae',
    500: '#21388b',
    950: '#000000',
  },
}
SCSS
$custom: #21388b;
$custom-light: #6d6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#21388b",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 139
  },
  "hsl": {
    "h": 226.981,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37712,
    "c": 0.1409,
    "h": 267.3
  },
  "luminance": 0.05016
}

Semantic roles & 50–950 ramp

primary
#21388B
secondary
#B9A24F
accent
#C243E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21388B

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

Preview Lab → · Contrast checker → · Palette generator →

#21388B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva