#213D9A#213D9A

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

Color values

HEX#213D9A
RGBrgb(33, 61, 154)
HSLhsl(226, 65%, 37%)
HSVhsv(226, 79%, 60%)
CMYKcmyk(78.6%, 60.4%, 0%, 39.6%)
CIE-LABlab(29.39, 24.61, -53.72)
CIE-LCHlch(29.39, 59.09, 294.61°)
OKLaboklab(40.06% -0.0097 -0.1552)
OKLCHoklch(40.06% 0.156 266.4)
XYZxyz(8.1266, 5.9930, 31.2940)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D9A #9A7E21
analogous
#217A9A #213D9A #42219A
triadic
#213D9A #9A213D #3D9A21
tetradic
#213D9A #9A217A #9A7E21 #219A42
square
#213D9A #9A217A #9A7E21 #219A42
split-complementary
#213D9A #9A4221 #7A9A21
monochromatic
#0B1535 #162968 #213D9A #2C51CC #5A78DC

Accessibility & contrast

On white

9.55
#213D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#213D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213D9A
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D9A#FFFFFF#000000##FFFFFF
##213D9A1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #213d9a;
/* rgb */ color: rgb(33, 61, 154);
/* oklch */ color: oklch(40.1% 0.156 266.4);
Tailwind
colors: {
  custom: {
    50: '#7072b9',
    500: '#213d9a',
    950: '#000000',
  },
}
SCSS
$custom: #213d9a;
$custom-light: #7072b9;
$custom-dark: #000000;
JSON
{
  "hex": "#213d9a",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 154
  },
  "hsl": {
    "h": 226.116,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40058,
    "c": 0.15552,
    "h": 266.4
  },
  "luminance": 0.05994
}

Semantic roles & 50–950 ramp

primary
#213D9A
secondary
#C0A857
accent
#C140E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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