#213D9D#213D9D

#213D9D is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.160 H 266.5°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#213D9D
RGBrgb(33, 61, 157)
HSLhsl(226, 65%, 37%)
HSVhsv(226, 79%, 62%)
CMYKcmyk(79%, 61.1%, 0%, 38.4%)
CIE-LABlab(29.65, 25.77, -55.13)
CIE-LCHlch(29.65, 60.86, 295.06°)
OKLaboklab(40.33% -0.0097 -0.1593)
OKLCHoklch(40.33% 0.16 266.5)
XYZxyz(8.3796, 6.0942, 32.6264)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D9D #9D8121
analogous
#217B9D #213D9D #43219D
triadic
#213D9D #9D213D #3D9D21
tetradic
#213D9D #9D217B #9D8121 #219D43
square
#213D9D #9D217B #9D8121 #219D43
split-complementary
#213D9D #9D4321 #7B9D21
monochromatic
#0C1638 #16296A #213D9D #2C51D0 #5C79DD

Accessibility & contrast

On white

9.46
#213D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#213D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213D9D
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D9D#FFFFFF#000000##FFFFFF
##213D9D1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #213d9d;
/* rgb */ color: rgb(33, 61, 157);
/* oklch */ color: oklch(40.3% 0.160 266.5);
Tailwind
colors: {
  custom: {
    50: '#7172bb',
    500: '#213d9d',
    950: '#000000',
  },
}
SCSS
$custom: #213d9d;
$custom-light: #7172bb;
$custom-dark: #000000;
JSON
{
  "hex": "#213d9d",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 157
  },
  "hsl": {
    "h": 226.452,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40327,
    "c": 0.15963,
    "h": 266.5
  },
  "luminance": 0.06095
}

Semantic roles & 50–950 ramp

primary
#213D9D
secondary
#C1A959
accent
#C240E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #213D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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