#213D99#213D99

#213D99 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.154 H 266.4°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#213D99
RGBrgb(33, 61, 153)
HSLhsl(226, 65%, 36%)
HSVhsv(226, 78%, 60%)
CMYKcmyk(78.4%, 60.1%, 0%, 40%)
CIE-LABlab(29.31, 24.22, -53.25)
CIE-LCHlch(29.31, 58.50, 294.45°)
OKLaboklab(39.97% -0.0098 -0.1538)
OKLCHoklch(39.97% 0.154 266.4)
XYZxyz(8.0437, 5.9598, 30.8572)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D99 #997D21
analogous
#217999 #213D99 #412199
triadic
#213D99 #99213D #3D9921
tetradic
#213D99 #992179 #997D21 #219941
square
#213D99 #992179 #997D21 #219941
split-complementary
#213D99 #994121 #799921
monochromatic
#0B1534 #162967 #213D99 #2C51CB #5978DB

Accessibility & contrast

On white

9.58
#213D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #213D99
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D99#FFFFFF#000000##FFFFFF
##213D991.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #213d99;
/* rgb */ color: rgb(33, 61, 153);
/* oklch */ color: oklch(40.0% 0.154 266.4);
Tailwind
colors: {
  custom: {
    50: '#7072b8',
    500: '#213d99',
    950: '#000000',
  },
}
SCSS
$custom: #213d99;
$custom-light: #7072b8;
$custom-dark: #000000;
JSON
{
  "hex": "#213d99",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 153
  },
  "hsl": {
    "h": 226,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3997,
    "c": 0.15413,
    "h": 266.4
  },
  "luminance": 0.05961
}

Semantic roles & 50–950 ramp

primary
#213D99
secondary
#BFA756
accent
#C040E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213D99

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

Preview Lab → · Contrast checker → · Palette generator →

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