#21378F#21378F

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

Color values

HEX#21378F
RGBrgb(33, 55, 143)
HSLhsl(228, 63%, 35%)
HSVhsv(228, 77%, 56%)
CMYKcmyk(76.9%, 61.5%, 0%, 43.9%)
CIE-LABlab(26.84, 24.41, -51.14)
CIE-LCHlch(26.84, 56.67, 295.52°)
OKLaboklab(37.87% -0.0057 -0.1477)
OKLCHoklch(37.87% 0.148 267.8)
XYZxyz(6.9496, 5.0381, 26.5875)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21378F #8F7921
analogous
#216E8F #21378F #42218F
triadic
#21378F #8F2137 #378F21
tetradic
#21378F #8F216E #8F7921 #218F42
square
#21378F #8F216E #8F7921 #218F42
split-complementary
#21378F #8F4221 #6E8F21
monochromatic
#0A112C #16245D #21378F #2C4AC1 #536ED7

Accessibility & contrast

On white

10.46
#21378F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#21378F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21378F
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21378F#FFFFFF#000000##FFFFFF
##21378F1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21378f;
/* rgb */ color: rgb(33, 55, 143);
/* oklch */ color: oklch(37.9% 0.148 267.8);
Tailwind
colors: {
  custom: {
    50: '#6e6db1',
    500: '#21378f',
    950: '#000000',
  },
}
SCSS
$custom: #21378f;
$custom-light: #6e6db1;
$custom-dark: #000000;
JSON
{
  "hex": "#21378f",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 143
  },
  "hsl": {
    "h": 228,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37866,
    "c": 0.14783,
    "h": 267.8
  },
  "luminance": 0.05039
}

Semantic roles & 50–950 ramp

primary
#21378F
secondary
#BBA651
accent
#C542E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #21378F

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

Preview Lab → · Contrast checker → · Palette generator →

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