#213796#213796

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

Color values

HEX#213796
RGBrgb(33, 55, 150)
HSLhsl(229, 64%, 36%)
HSVhsv(229, 78%, 59%)
CMYKcmyk(78%, 63.3%, 0%, 41.2%)
CIE-LABlab(27.45, 27.12, -54.45)
CIE-LCHlch(27.45, 60.83, 296.48°)
OKLaboklab(38.51% -0.0058 -0.1574)
OKLCHoklch(38.51% 0.158 267.9)
XYZxyz(7.4965, 5.2569, 29.4678)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213796 #968021
analogous
#217196 #213796 #452196
triadic
#213796 #962137 #379621
tetradic
#213796 #962171 #968021 #219645
square
#213796 #962171 #968021 #219645
split-complementary
#213796 #964521 #719621
monochromatic
#0B1232 #162564 #213796 #2C49C8 #5770DA

Accessibility & contrast

On white

10.24
#213796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#213796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213796
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213796#FFFFFF#000000##FFFFFF
##2137961.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #213796;
/* rgb */ color: rgb(33, 55, 150);
/* oklch */ color: oklch(38.5% 0.158 267.9);
Tailwind
colors: {
  custom: {
    50: '#706db6',
    500: '#213796',
    950: '#000000',
  },
}
SCSS
$custom: #213796;
$custom-light: #706db6;
$custom-dark: #000000;
JSON
{
  "hex": "#213796",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 150
  },
  "hsl": {
    "h": 228.718,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38509,
    "c": 0.15753,
    "h": 267.9
  },
  "luminance": 0.05258
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #213796

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

Preview Lab → · Contrast checker → · Palette generator →

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