#21377E#21377E

#21377E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.4% C 0.123 H 267.0°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#21377E
RGBrgb(33, 55, 126)
HSLhsl(226, 58%, 31%)
HSVhsv(226, 74%, 49%)
CMYKcmyk(73.8%, 56.3%, 0%, 50.6%)
CIE-LABlab(25.45, 17.72, -42.82)
CIE-LCHlch(25.45, 46.34, 292.48°)
OKLaboklab(36.38% -0.0064 -0.1233)
OKLCHoklch(36.38% 0.123 267)
XYZxyz(5.7580, 4.5615, 20.3116)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21377E #7E6821
analogous
#21657E #21377E #39217E
triadic
#21377E #7E2137 #377E21
tetradic
#21377E #7E2165 #7E6821 #217E39
square
#21377E #7E2165 #7E6821 #217E39
split-complementary
#21377E #7E3921 #657E21
monochromatic
#080D1D #14224E #21377E #2E4CAE #4A69D0

Accessibility & contrast

On white

10.98
#21377E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#21377E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21377E
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21377E#FFFFFF#000000##FFFFFF
##21377E1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004180
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #21377e;
/* rgb */ color: rgb(33, 55, 126);
/* oklch */ color: oklch(36.4% 0.123 267.0);
Tailwind
colors: {
  custom: {
    50: '#6a6da4',
    500: '#21377e',
    950: '#000000',
  },
}
SCSS
$custom: #21377e;
$custom-light: #6a6da4;
$custom-dark: #000000;
JSON
{
  "hex": "#21377e",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 126
  },
  "hsl": {
    "h": 225.806,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36383,
    "c": 0.12343,
    "h": 267
  },
  "luminance": 0.04562
}

Semantic roles & 50–950 ramp

primary
#21377E
secondary
#B1984A
accent
#BD46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #21377E

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

Preview Lab → · Contrast checker → · Palette generator →

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