#21378D#21378D

#21378D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.145 H 267.7°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#21378D
RGBrgb(33, 55, 141)
HSLhsl(228, 62%, 34%)
HSVhsv(228, 77%, 55%)
CMYKcmyk(76.6%, 61%, 0%, 44.7%)
CIE-LABlab(26.67, 23.63, -50.18)
CIE-LCHlch(26.67, 55.47, 295.21°)
OKLaboklab(37.69% -0.0057 -0.1449)
OKLCHoklch(37.69% 0.145 267.7)
XYZxyz(6.7994, 4.9781, 25.7967)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21378D #8D7721
analogous
#216D8D #21378D #41218D
triadic
#21378D #8D2137 #378D21
tetradic
#21378D #8D216D #8D7721 #218D41
square
#21378D #8D216D #8D7721 #218D41
split-complementary
#21378D #8D4121 #6D8D21
monochromatic
#0A102A #15245B #21378D #2D4ABF #526DD6

Accessibility & contrast

On white

10.52
#21378D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21378D
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21378D#FFFFFF#000000##FFFFFF
##21378D1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21378d;
/* rgb */ color: rgb(33, 55, 141);
/* oklch */ color: oklch(37.7% 0.145 267.7);
Tailwind
colors: {
  custom: {
    50: '#6d6daf',
    500: '#21378d',
    950: '#000000',
  },
}
SCSS
$custom: #21378d;
$custom-light: #6d6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#21378d",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 141
  },
  "hsl": {
    "h": 227.778,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37686,
    "c": 0.14502,
    "h": 267.7
  },
  "luminance": 0.04979
}

Semantic roles & 50–950 ramp

primary
#21378D
secondary
#BAA450
accent
#C443E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21378D

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

Preview Lab → · Contrast checker → · Palette generator →

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