#213398#213398

#213398 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.9% C 0.165 H 268.8°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#213398
RGBrgb(33, 51, 152)
HSLhsl(231, 64%, 36%)
HSVhsv(231, 78%, 60%)
CMYKcmyk(78.3%, 66.4%, 0%, 40.4%)
CIE-LABlab(26.61, 30.56, -57.05)
CIE-LCHlch(26.61, 64.72, 298.18°)
OKLaboklab(37.95% -0.0033 -0.1651)
OKLCHoklch(37.95% 0.165 268.8)
XYZxyz(7.4766, 4.9572, 30.2625)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213398 #988621
analogous
#216F98 #213398 #4B2198
triadic
#213398 #982133 #339821
tetradic
#213398 #98216F #988621 #21984B
square
#213398 #98216F #988621 #21984B
split-complementary
#213398 #984B21 #6F9821
monochromatic
#0B1133 #162266 #213398 #2C44CA #596CDB

Accessibility & contrast

On white

10.54
#213398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#213398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213398
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213398#FFFFFF#000000##FFFFFF
##2133981.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #213398;
/* rgb */ color: rgb(33, 51, 152);
/* oklch */ color: oklch(37.9% 0.165 268.8);
Tailwind
colors: {
  custom: {
    50: '#716ab7',
    500: '#213398',
    950: '#000000',
  },
}
SCSS
$custom: #213398;
$custom-light: #716ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#213398",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 152
  },
  "hsl": {
    "h": 230.924,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37945,
    "c": 0.16511,
    "h": 268.8
  },
  "luminance": 0.04958
}

Semantic roles & 50–950 ramp

primary
#213398
secondary
#BFAF56
accent
#CE40E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #213398

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

Preview Lab → · Contrast checker → · Palette generator →

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