#21388D#21388D

#21388D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.144 H 267.4°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#21388D
RGBrgb(33, 56, 141)
HSLhsl(227, 62%, 34%)
HSVhsv(227, 77%, 55%)
CMYKcmyk(76.6%, 60.3%, 0%, 44.7%)
CIE-LABlab(26.94, 22.94, -49.74)
CIE-LCHlch(26.94, 54.78, 294.76°)
OKLaboklab(37.89% -0.0065 -0.1436)
OKLCHoklch(37.89% 0.144 267.4)
XYZxyz(6.8474, 5.0740, 25.8126)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21388D #8D7621
analogous
#216E8D #21388D #40218D
triadic
#21388D #8D2138 #388D21
tetradic
#21388D #8D216E #8D7621 #218D40
square
#21388D #8D216E #8D7621 #218D40
split-complementary
#21388D #8D4021 #6E8D21
monochromatic
#0A112A #15245B #21388D #2D4CBF #526ED6

Accessibility & contrast

On white

10.42
#21388D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#21388D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21388D
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21388D#FFFFFF#000000##FFFFFF
##21388D1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #21388d;
/* rgb */ color: rgb(33, 56, 141);
/* oklch */ color: oklch(37.9% 0.144 267.4);
Tailwind
colors: {
  custom: {
    50: '#6d6eaf',
    500: '#21388d',
    950: '#000000',
  },
}
SCSS
$custom: #21388d;
$custom-light: #6d6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#21388d",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 141
  },
  "hsl": {
    "h": 227.222,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37889,
    "c": 0.14374,
    "h": 267.4
  },
  "luminance": 0.05075
}

Semantic roles & 50–950 ramp

primary
#21388D
secondary
#BAA350
accent
#C343E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21388D

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

Preview Lab → · Contrast checker → · Palette generator →

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