#213787#213787

#213787 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.2% C 0.137 H 267.5°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#213787
RGBrgb(33, 55, 135)
HSLhsl(227, 61%, 33%)
HSVhsv(227, 76%, 53%)
CMYKcmyk(75.6%, 59.3%, 0%, 47.1%)
CIE-LABlab(26.17, 21.28, -47.28)
CIE-LCHlch(26.17, 51.84, 294.23°)
OKLaboklab(37.15% -0.0059 -0.1364)
OKLCHoklch(37.15% 0.137 267.5)
XYZxyz(6.3650, 4.8043, 23.5088)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213787 #877121
analogous
#216A87 #213787 #3E2187
triadic
#213787 #872137 #378721
tetradic
#213787 #87216A #877121 #21873E
square
#213787 #87216A #877121 #21873E
split-complementary
#213787 #873E21 #6A8721
monochromatic
#090F25 #152356 #213787 #2D4BB8 #4F6BD4

Accessibility & contrast

On white

10.71
#213787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#213787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213787
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213787#FFFFFF#000000##FFFFFF
##2137871.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #213787;
/* rgb */ color: rgb(33, 55, 135);
/* oklch */ color: oklch(37.2% 0.137 267.5);
Tailwind
colors: {
  custom: {
    50: '#6c6dab',
    500: '#213787',
    950: '#000000',
  },
}
SCSS
$custom: #213787;
$custom-light: #6c6dab;
$custom-dark: #000000;
JSON
{
  "hex": "#213787",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 227.059,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37154,
    "c": 0.1365,
    "h": 267.5
  },
  "luminance": 0.04805
}

Semantic roles & 50–950 ramp

primary
#213787
secondary
#B7A04D
accent
#C144E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #213787

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

Preview Lab → · Contrast checker → · Palette generator →

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