#213997#213997

#213997 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.0% C 0.156 H 267.4°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#213997
RGBrgb(33, 57, 151)
HSLhsl(228, 64%, 36%)
HSVhsv(228, 78%, 59%)
CMYKcmyk(78.1%, 62.3%, 0%, 40.8%)
CIE-LABlab(28.07, 26.16, -54.05)
CIE-LCHlch(28.07, 60.05, 295.82°)
OKLaboklab(38.99% -0.0071 -0.1562)
OKLCHoklch(38.99% 0.156 267.4)
XYZxyz(7.6743, 5.4831, 29.9260)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213997 #977F21
analogous
#217497 #213997 #442197
triadic
#213997 #972139 #399721
tetradic
#213997 #972174 #977F21 #219744
square
#213997 #972174 #977F21 #219744
split-complementary
#213997 #974421 #749721
monochromatic
#0B1333 #162665 #213997 #2C4CC9 #5872DA

Accessibility & contrast

On white

10.02
#213997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#213997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213997
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213997#FFFFFF#000000##FFFFFF
##2139971.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #213997;
/* rgb */ color: rgb(33, 57, 151);
/* oklch */ color: oklch(39.0% 0.156 267.4);
Tailwind
colors: {
  custom: {
    50: '#706fb6',
    500: '#213997',
    950: '#000000',
  },
}
SCSS
$custom: #213997;
$custom-light: #706fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#213997",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 151
  },
  "hsl": {
    "h": 227.797,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38992,
    "c": 0.1564,
    "h": 267.4
  },
  "luminance": 0.05484
}

Semantic roles & 50–950 ramp

primary
#213997
secondary
#BEA955
accent
#C541E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213997

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

Preview Lab → · Contrast checker → · Palette generator →

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