#213771#213771

#213771 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.3% C 0.104 H 265.7°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#213771
RGBrgb(33, 55, 113)
HSLhsl(224, 55%, 29%)
HSVhsv(224, 71%, 44%)
CMYKcmyk(70.8%, 51.3%, 0%, 55.7%)
CIE-LABlab(24.47, 12.56, -36.15)
CIE-LCHlch(24.47, 38.27, 289.15°)
OKLaboklab(35.34% -0.0078 -0.1036)
OKLCHoklch(35.34% 0.104 265.7)
XYZxyz(4.9730, 4.2475, 16.1773)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213771 #715B21
analogous
#215F71 #213771 #332171
triadic
#213771 #712137 #377121
tetradic
#213771 #71215F #715B21 #217133
square
#213771 #71215F #715B21 #217133
split-complementary
#213771 #713321 #5F7121
monochromatic
#070C18 #132042 #213771 #2F4EA0 #4468C8

Accessibility & contrast

On white

11.35
#213771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#213771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213771
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213771#FFFFFF#000000##FFFFFF
##2137711.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173E73
Deuteranopia (green-blind)
#033770
Tritanopia (blue-blind)
#00454E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #213771;
/* rgb */ color: rgb(33, 55, 113);
/* oklch */ color: oklch(35.3% 0.104 265.7);
Tailwind
colors: {
  custom: {
    50: '#676d9a',
    500: '#213771',
    950: '#000000',
  },
}
SCSS
$custom: #213771;
$custom-light: #676d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#213771",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 113
  },
  "hsl": {
    "h": 223.5,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35335,
    "c": 0.10393,
    "h": 265.7
  },
  "luminance": 0.04248
}

Semantic roles & 50–950 ramp

primary
#213771
secondary
#A58B49
accent
#B54ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #213771

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

Preview Lab → · Contrast checker → · Palette generator →

#213771 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva