#213171#213171

#213171 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.0% C 0.112 H 269.1°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#213171
RGBrgb(33, 49, 113)
HSLhsl(228, 55%, 29%)
HSVhsv(228, 71%, 44%)
CMYKcmyk(70.8%, 56.6%, 0%, 55.7%)
CIE-LABlab(22.69, 16.80, -39.02)
CIE-LCHlch(22.69, 42.48, 293.30°)
OKLaboklab(33.99% -0.0018 -0.1122)
OKLCHoklch(33.99% 0.112 269.1)
XYZxyz(4.7051, 3.7118, 16.0881)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213171 #716121
analogous
#215971 #213171 #392171
triadic
#213171 #712131 #317121
tetradic
#213171 #712159 #716121 #217139
square
#213171 #712159 #716121 #217139
split-complementary
#213171 #713921 #597121
monochromatic
#070A18 #131C42 #213171 #2F46A0 #445EC8

Accessibility & contrast

On white

12.05
#213171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#213171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213171
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213171#FFFFFF#000000##FFFFFF
##2131711.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033A73
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #213171;
/* rgb */ color: rgb(33, 49, 113);
/* oklch */ color: oklch(34.0% 0.112 269.1);
Tailwind
colors: {
  custom: {
    50: '#67689a',
    500: '#213171',
    950: '#000000',
  },
}
SCSS
$custom: #213171;
$custom-light: #67689a;
$custom-dark: #000000;
JSON
{
  "hex": "#213171",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 228,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33987,
    "c": 0.11219,
    "h": 269.1
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#213171
secondary
#A59249
accent
#C04ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #213171

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

Preview Lab → · Contrast checker → · Palette generator →

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