#213797#213797

#213797 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.6% C 0.159 H 267.9°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#213797
RGBrgb(33, 55, 151)
HSLhsl(229, 64%, 36%)
HSVhsv(229, 78%, 59%)
CMYKcmyk(78.1%, 63.6%, 0%, 40.8%)
CIE-LABlab(27.54, 27.51, -54.91)
CIE-LCHlch(27.54, 61.42, 296.61°)
OKLaboklab(38.6% -0.0058 -0.1588)
OKLCHoklch(38.6% 0.159 267.9)
XYZxyz(7.5774, 5.2892, 29.8937)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213797 #978121
analogous
#217297 #213797 #462197
triadic
#213797 #972137 #379721
tetradic
#213797 #972172 #978121 #219746
square
#213797 #972172 #978121 #219746
split-complementary
#213797 #974621 #729721
monochromatic
#0B1233 #162565 #213797 #2C49C9 #5870DA

Accessibility & contrast

On white

10.20
#213797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#213797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213797
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213797#FFFFFF#000000##FFFFFF
##2137971.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #213797;
/* rgb */ color: rgb(33, 55, 151);
/* oklch */ color: oklch(38.6% 0.159 267.9);
Tailwind
colors: {
  custom: {
    50: '#706db6',
    500: '#213797',
    950: '#000000',
  },
}
SCSS
$custom: #213797;
$custom-light: #706db6;
$custom-dark: #000000;
JSON
{
  "hex": "#213797",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 228.814,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38603,
    "c": 0.15889,
    "h": 267.9
  },
  "luminance": 0.0529
}

Semantic roles & 50–950 ramp

primary
#213797
secondary
#BEAB55
accent
#C841E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213797

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

Preview Lab → · Contrast checker → · Palette generator →

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