#21378E#21378E

#21378E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.146 H 267.8°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#21378E
RGBrgb(33, 55, 142)
HSLhsl(228, 62%, 34%)
HSVhsv(228, 77%, 56%)
CMYKcmyk(76.8%, 61.3%, 0%, 44.3%)
CIE-LABlab(26.76, 24.02, -50.66)
CIE-LCHlch(26.76, 56.07, 295.37°)
OKLaboklab(37.78% -0.0057 -0.1463)
OKLCHoklch(37.78% 0.146 267.8)
XYZxyz(6.8742, 5.0080, 26.1903)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21378E #8E7821
analogous
#216E8E #21378E #42218E
triadic
#21378E #8E2137 #378E21
tetradic
#21378E #8E216E #8E7821 #218E42
square
#21378E #8E216E #8E7821 #218E42
split-complementary
#21378E #8E4221 #6E8E21
monochromatic
#0A112B #15245C #21378E #2D4AC0 #526DD7

Accessibility & contrast

On white

10.49
#21378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#21378E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21378E
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21378E#FFFFFF#000000##FFFFFF
##21378E1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21378e;
/* rgb */ color: rgb(33, 55, 142);
/* oklch */ color: oklch(37.8% 0.146 267.8);
Tailwind
colors: {
  custom: {
    50: '#6e6db0',
    500: '#21378e',
    950: '#000000',
  },
}
SCSS
$custom: #21378e;
$custom-light: #6e6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#21378e",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 227.89,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37776,
    "c": 0.14643,
    "h": 267.8
  },
  "luminance": 0.05009
}

Semantic roles & 50–950 ramp

primary
#21378E
secondary
#BAA550
accent
#C442E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080711
muted
#7B7A80

Preview Lab

Preview with #21378E

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

Preview Lab → · Contrast checker → · Palette generator →

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