#213D98#213D98

#213D98 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.153 H 266.3°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#213D98
RGBrgb(33, 61, 152)
HSLhsl(226, 64%, 36%)
HSVhsv(226, 78%, 60%)
CMYKcmyk(78.3%, 59.9%, 0%, 40.4%)
CIE-LABlab(29.23, 23.83, -52.77)
CIE-LCHlch(29.23, 57.90, 294.30°)
OKLaboklab(39.88% -0.0098 -0.1524)
OKLCHoklch(39.88% 0.153 266.3)
XYZxyz(7.9615, 5.9269, 30.4241)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D98 #987C21
analogous
#217998 #213D98 #412198
triadic
#213D98 #98213D #3D9821
tetradic
#213D98 #982179 #987C21 #219841
square
#213D98 #982179 #987C21 #219841
split-complementary
#213D98 #984121 #799821
monochromatic
#0B1533 #162966 #213D98 #2C51CA #5977DB

Accessibility & contrast

On white

9.61
#213D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#213D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213D98
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D98#FFFFFF#000000##FFFFFF
##213D981.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #213d98;
/* rgb */ color: rgb(33, 61, 152);
/* oklch */ color: oklch(39.9% 0.153 266.3);
Tailwind
colors: {
  custom: {
    50: '#7072b7',
    500: '#213d98',
    950: '#000000',
  },
}
SCSS
$custom: #213d98;
$custom-light: #7072b7;
$custom-dark: #000000;
JSON
{
  "hex": "#213d98",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 152
  },
  "hsl": {
    "h": 225.882,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39881,
    "c": 0.15274,
    "h": 266.3
  },
  "luminance": 0.05928
}

Semantic roles & 50–950 ramp

primary
#213D98
secondary
#BFA656
accent
#C040E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213D98

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

Preview Lab → · Contrast checker → · Palette generator →

#213D98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva