#213D9B#213D9B

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

Color values

HEX#213D9B
RGBrgb(33, 61, 155)
HSLhsl(226, 65%, 37%)
HSVhsv(226, 79%, 61%)
CMYKcmyk(78.7%, 60.6%, 0%, 39.2%)
CIE-LABlab(29.48, 25.00, -54.19)
CIE-LCHlch(29.48, 59.68, 294.76°)
OKLaboklab(40.15% -0.0097 -0.1566)
OKLCHoklch(40.15% 0.157 266.4)
XYZxyz(8.2103, 6.0264, 31.7345)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D9B #9B7F21
analogous
#217A9B #213D9B #42219B
triadic
#213D9B #9B213D #3D9B21
tetradic
#213D9B #9B217A #9B7F21 #219B42
square
#213D9B #9B217A #9B7F21 #219B42
split-complementary
#213D9B #9B4221 #7A9B21
monochromatic
#0C1536 #162969 #213D9B #2C51CD #5A78DC

Accessibility & contrast

On white

9.52
#213D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#213D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213D9B
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D9B#FFFFFF#000000##FFFFFF
##213D9B1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #213d9b;
/* rgb */ color: rgb(33, 61, 155);
/* oklch */ color: oklch(40.1% 0.157 266.4);
Tailwind
colors: {
  custom: {
    50: '#7172b9',
    500: '#213d9b',
    950: '#000000',
  },
}
SCSS
$custom: #213d9b;
$custom-light: #7172b9;
$custom-dark: #000000;
JSON
{
  "hex": "#213d9b",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 155
  },
  "hsl": {
    "h": 226.23,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40148,
    "c": 0.15689,
    "h": 266.4
  },
  "luminance": 0.06027
}

Semantic roles & 50–950 ramp

primary
#213D9B
secondary
#C0A858
accent
#C140E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #213D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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