#213399#213399

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

Color values

HEX#213399
RGBrgb(33, 51, 153)
HSLhsl(231, 65%, 36%)
HSVhsv(231, 78%, 60%)
CMYKcmyk(78.4%, 66.7%, 0%, 40%)
CIE-LABlab(26.71, 30.94, -57.51)
CIE-LCHlch(26.71, 65.30, 298.28°)
OKLaboklab(38.04% -0.0034 -0.1664)
OKLCHoklch(38.04% 0.166 268.8)
XYZxyz(7.5588, 4.9900, 30.6956)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213399 #998721
analogous
#216F99 #213399 #4B2199
triadic
#213399 #992133 #339921
tetradic
#213399 #99216F #998721 #21994B
square
#213399 #99216F #998721 #21994B
split-complementary
#213399 #994B21 #6F9921
monochromatic
#0B1134 #162267 #213399 #2C44CB #596DDB

Accessibility & contrast

On white

10.51
#213399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#213399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213399
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213399#FFFFFF#000000##FFFFFF
##2133991.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #213399;
/* rgb */ color: rgb(33, 51, 153);
/* oklch */ color: oklch(38.0% 0.166 268.8);
Tailwind
colors: {
  custom: {
    50: '#716ab8',
    500: '#213399',
    950: '#000000',
  },
}
SCSS
$custom: #213399;
$custom-light: #716ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#213399",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 231,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38043,
    "c": 0.16645,
    "h": 268.8
  },
  "luminance": 0.04991
}

Semantic roles & 50–950 ramp

primary
#213399
secondary
#BFB056
accent
#CE40E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #213399

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

Preview Lab → · Contrast checker → · Palette generator →

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