#21377F#21377F

#21377F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.5% C 0.125 H 267.1°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#21377F
RGBrgb(33, 55, 127)
HSLhsl(226, 59%, 31%)
HSVhsv(226, 74%, 50%)
CMYKcmyk(74%, 56.7%, 0%, 50.2%)
CIE-LABlab(25.53, 18.12, -43.32)
CIE-LCHlch(25.53, 46.95, 292.70°)
OKLaboklab(36.47% -0.0063 -0.1247)
OKLCHoklch(36.47% 0.125 267.1)
XYZxyz(5.8228, 4.5874, 20.6531)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21377F #7F6921
analogous
#21667F #21377F #3A217F
triadic
#21377F #7F2137 #377F21
tetradic
#21377F #7F2166 #7F6921 #217F3A
square
#21377F #7F2166 #7F6921 #217F3A
split-complementary
#21377F #7F3A21 #667F21
monochromatic
#080D1E #14224E #21377F #2E4CB0 #4A6AD0

Accessibility & contrast

On white

10.95
#21377F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#21377F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21377F
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21377F#FFFFFF#000000##FFFFFF
##21377F1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21377f;
/* rgb */ color: rgb(33, 55, 127);
/* oklch */ color: oklch(36.5% 0.125 267.1);
Tailwind
colors: {
  custom: {
    50: '#6a6da5',
    500: '#21377f',
    950: '#000000',
  },
}
SCSS
$custom: #21377f;
$custom-light: #6a6da5;
$custom-dark: #000000;
JSON
{
  "hex": "#21377f",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 127
  },
  "hsl": {
    "h": 225.957,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36467,
    "c": 0.1249,
    "h": 267.1
  },
  "luminance": 0.04588
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21377F

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

Preview Lab → · Contrast checker → · Palette generator →

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