#213871#213871

#213871 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.6% C 0.103 H 265.1°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#213871
RGBrgb(33, 56, 113)
HSLhsl(223, 55%, 29%)
HSVhsv(223, 71%, 44%)
CMYKcmyk(70.8%, 50.4%, 0%, 55.7%)
CIE-LABlab(24.78, 11.85, -35.66)
CIE-LCHlch(24.78, 37.58, 288.38°)
OKLaboklab(35.57% -0.0088 -0.1022)
OKLCHoklch(35.57% 0.103 265.1)
XYZxyz(5.0210, 4.3434, 16.1933)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213871 #715A21
analogous
#216071 #213871 #322171
triadic
#213871 #712138 #387121
tetradic
#213871 #712160 #715A21 #217132
square
#213871 #712160 #715A21 #217132
split-complementary
#213871 #713221 #607121
monochromatic
#070C18 #132142 #213871 #2F4FA0 #446AC8

Accessibility & contrast

On white

11.24
#213871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#213871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213871
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213871#FFFFFF#000000##FFFFFF
##2138711.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3F73
Deuteranopia (green-blind)
#073770
Tritanopia (blue-blind)
#00454F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #213871;
/* rgb */ color: rgb(33, 56, 113);
/* oklch */ color: oklch(35.6% 0.103 265.1);
Tailwind
colors: {
  custom: {
    50: '#676e9a',
    500: '#213871',
    950: '#000000',
  },
}
SCSS
$custom: #213871;
$custom-light: #676e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#213871",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 222.75,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35566,
    "c": 0.10257,
    "h": 265.1
  },
  "luminance": 0.04344
}

Semantic roles & 50–950 ramp

primary
#213871
secondary
#A58A49
accent
#B34ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #213871

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

Preview Lab → · Contrast checker → · Palette generator →

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