#213371#213371

#213371 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.4% C 0.109 H 268.0°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#213371
RGBrgb(33, 51, 113)
HSLhsl(227, 55%, 29%)
HSVhsv(227, 71%, 44%)
CMYKcmyk(70.8%, 54.9%, 0%, 55.7%)
CIE-LABlab(23.28, 15.38, -38.07)
CIE-LCHlch(23.28, 41.06, 292.00°)
OKLaboklab(34.43% -0.0038 -0.1094)
OKLCHoklch(34.43% 0.109 268)
XYZxyz(4.7906, 3.8828, 16.1166)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213371 #715F21
analogous
#215B71 #213371 #372171
triadic
#213371 #712133 #337121
tetradic
#213371 #71215B #715F21 #217137
square
#213371 #71215B #715F21 #217137
split-complementary
#213371 #713721 #5B7121
monochromatic
#070B18 #131E42 #213371 #2F48A0 #4462C8

Accessibility & contrast

On white

11.82
#213371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#213371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213371
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213371#FFFFFF#000000##FFFFFF
##2133711.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3B73
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#00424C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #213371;
/* rgb */ color: rgb(33, 51, 113);
/* oklch */ color: oklch(34.4% 0.109 268.0);
Tailwind
colors: {
  custom: {
    50: '#676a9a',
    500: '#213371',
    950: '#000000',
  },
}
SCSS
$custom: #213371;
$custom-light: #676a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#213371",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 226.5,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34429,
    "c": 0.10944,
    "h": 268
  },
  "luminance": 0.03883
}

Semantic roles & 50–950 ramp

primary
#213371
secondary
#A59049
accent
#BD4ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #213371

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

Preview Lab → · Contrast checker → · Palette generator →

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