#21377C#21377C

#21377C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.2% C 0.120 H 266.9°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#21377C
RGBrgb(33, 55, 124)
HSLhsl(225, 58%, 31%)
HSVhsv(225, 73%, 49%)
CMYKcmyk(73.4%, 55.6%, 0%, 51.4%)
CIE-LABlab(25.29, 16.93, -41.81)
CIE-LCHlch(25.29, 45.10, 292.04°)
OKLaboklab(36.22% -0.0065 -0.1203)
OKLCHoklch(36.22% 0.12 266.9)
XYZxyz(5.6302, 4.5104, 19.6387)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21377C #7C6621
analogous
#21647C #21377C #39217C
triadic
#21377C #7C2137 #377C21
tetradic
#21377C #7C2164 #7C6621 #217C39
square
#21377C #7C2164 #7C6621 #217C39
split-complementary
#21377C #7C3921 #647C21
monochromatic
#070C1B #14224C #21377C #2E4CAC #4969CF

Accessibility & contrast

On white

11.04
#21377C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#21377C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21377C
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21377C#FFFFFF#000000##FFFFFF
##21377C1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04407E
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #21377c;
/* rgb */ color: rgb(33, 55, 124);
/* oklch */ color: oklch(36.2% 0.120 266.9);
Tailwind
colors: {
  custom: {
    50: '#696da2',
    500: '#21377c',
    950: '#000000',
  },
}
SCSS
$custom: #21377c;
$custom-light: #696da2;
$custom-dark: #000000;
JSON
{
  "hex": "#21377c",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 124
  },
  "hsl": {
    "h": 225.495,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36217,
    "c": 0.12047,
    "h": 266.9
  },
  "luminance": 0.04511
}

Semantic roles & 50–950 ramp

primary
#21377C
secondary
#AF964A
accent
#BC47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #21377C

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

Preview Lab → · Contrast checker → · Palette generator →

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