#213791#213791

#213791 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.151 H 267.8°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#213791
RGBrgb(33, 55, 145)
HSLhsl(228, 63%, 35%)
HSVhsv(228, 77%, 57%)
CMYKcmyk(77.2%, 62.1%, 0%, 43.1%)
CIE-LABlab(27.02, 25.19, -52.09)
CIE-LCHlch(27.02, 57.86, 295.80°)
OKLaboklab(38.05% -0.0057 -0.1505)
OKLCHoklch(38.05% 0.151 267.8)
XYZxyz(7.1024, 5.0993, 27.3925)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213791 #917B21
analogous
#216F91 #213791 #432191
triadic
#213791 #912137 #379121
tetradic
#213791 #91216F #917B21 #219143
square
#213791 #91216F #917B21 #219143
split-complementary
#213791 #914321 #6F9121
monochromatic
#0A112D #16245F #213791 #2C4AC3 #546ED8

Accessibility & contrast

On white

10.40
#213791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#213791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213791
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213791#FFFFFF#000000##FFFFFF
##2137911.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#003B8F
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #213791;
/* rgb */ color: rgb(33, 55, 145);
/* oklch */ color: oklch(38.0% 0.151 267.8);
Tailwind
colors: {
  custom: {
    50: '#6e6db2',
    500: '#213791',
    950: '#000000',
  },
}
SCSS
$custom: #213791;
$custom-light: #6e6db2;
$custom-dark: #000000;
JSON
{
  "hex": "#213791",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 228.214,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38048,
    "c": 0.15062,
    "h": 267.8
  },
  "luminance": 0.051
}

Semantic roles & 50–950 ramp

primary
#213791
secondary
#BCA752
accent
#C642E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #213791

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

Preview Lab → · Contrast checker → · Palette generator →

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