#21378B#21378B

#21378B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.5% C 0.142 H 267.7°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#21378B
RGBrgb(33, 55, 139)
HSLhsl(228, 62%, 34%)
HSVhsv(228, 76%, 55%)
CMYKcmyk(76.3%, 60.4%, 0%, 45.5%)
CIE-LABlab(26.50, 22.85, -49.22)
CIE-LCHlch(26.50, 54.26, 294.90°)
OKLaboklab(37.51% -0.0058 -0.1421)
OKLCHoklch(37.51% 0.142 267.7)
XYZxyz(6.6520, 4.9191, 25.0200)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21378B #8B7521
analogous
#216C8B #21378B #40218B
triadic
#21378B #8B2137 #378B21
tetradic
#21378B #8B216C #8B7521 #218B40
square
#21378B #8B216C #8B7521 #218B40
split-complementary
#21378B #8B4021 #6C8B21
monochromatic
#0A1028 #15235A #21378B #2D4BBC #516CD6

Accessibility & contrast

On white

10.58
#21378B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#21378B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21378B
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21378B#FFFFFF#000000##FFFFFF
##21378B1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21378b;
/* rgb */ color: rgb(33, 55, 139);
/* oklch */ color: oklch(37.5% 0.142 267.7);
Tailwind
colors: {
  custom: {
    50: '#6d6dae',
    500: '#21378b',
    950: '#000000',
  },
}
SCSS
$custom: #21378b;
$custom-light: #6d6dae;
$custom-dark: #000000;
JSON
{
  "hex": "#21378b",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 139
  },
  "hsl": {
    "h": 227.547,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37507,
    "c": 0.1422,
    "h": 267.7
  },
  "luminance": 0.0492
}

Semantic roles & 50–950 ramp

primary
#21378B
secondary
#B9A34F
accent
#C343E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21378B

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

Preview Lab → · Contrast checker → · Palette generator →

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