#21378C#21378C

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

Color values

HEX#21378C
RGBrgb(33, 55, 140)
HSLhsl(228, 62%, 34%)
HSVhsv(228, 76%, 55%)
CMYKcmyk(76.4%, 60.7%, 0%, 45.1%)
CIE-LABlab(26.59, 23.24, -49.70)
CIE-LCHlch(26.59, 54.87, 295.06°)
OKLaboklab(37.6% -0.0058 -0.1435)
OKLCHoklch(37.6% 0.144 267.7)
XYZxyz(6.7254, 4.9484, 25.4066)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21378C #8C7621
analogous
#216D8C #21378C #41218C
triadic
#21378C #8C2137 #378C21
tetradic
#21378C #8C216D #8C7621 #218C41
square
#21378C #8C216D #8C7621 #218C41
split-complementary
#21378C #8C4121 #6D8C21
monochromatic
#0A1029 #15245A #21378C #2D4ABE #516DD6

Accessibility & contrast

On white

10.55
#21378C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#21378C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21378C
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21378C#FFFFFF#000000##FFFFFF
##21378C1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21378c;
/* rgb */ color: rgb(33, 55, 140);
/* oklch */ color: oklch(37.6% 0.144 267.7);
Tailwind
colors: {
  custom: {
    50: '#6d6dae',
    500: '#21378c',
    950: '#000000',
  },
}
SCSS
$custom: #21378c;
$custom-light: #6d6dae;
$custom-dark: #000000;
JSON
{
  "hex": "#21378c",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 140
  },
  "hsl": {
    "h": 227.664,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37596,
    "c": 0.14362,
    "h": 267.7
  },
  "luminance": 0.04949
}

Semantic roles & 50–950 ramp

primary
#21378C
secondary
#B9A44F
accent
#C443E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21378C

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

Preview Lab → · Contrast checker → · Palette generator →

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