#213D9C#213D9C

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

Color values

HEX#213D9C
RGBrgb(33, 61, 156)
HSLhsl(226, 65%, 37%)
HSVhsv(226, 79%, 61%)
CMYKcmyk(78.8%, 60.9%, 0%, 38.8%)
CIE-LABlab(29.56, 25.38, -54.66)
CIE-LCHlch(29.56, 60.27, 294.91°)
OKLaboklab(40.24% -0.0097 -0.158)
OKLCHoklch(40.24% 0.158 266.5)
XYZxyz(8.2946, 6.0602, 32.1786)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D9C #9C8021
analogous
#217B9C #213D9C #42219C
triadic
#213D9C #9C213D #3D9C21
tetradic
#213D9C #9C217B #9C8021 #219C42
square
#213D9C #9C217B #9C8021 #219C42
split-complementary
#213D9C #9C4221 #7B9C21
monochromatic
#0C1537 #162969 #213D9C #2C51CF #5B79DC

Accessibility & contrast

On white

9.49
#213D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #213D9C
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D9C#FFFFFF#000000##FFFFFF
##213D9C1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #213d9c;
/* rgb */ color: rgb(33, 61, 156);
/* oklch */ color: oklch(40.2% 0.158 266.5);
Tailwind
colors: {
  custom: {
    50: '#7172ba',
    500: '#213d9c',
    950: '#000000',
  },
}
SCSS
$custom: #213d9c;
$custom-light: #7172ba;
$custom-dark: #000000;
JSON
{
  "hex": "#213d9c",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 156
  },
  "hsl": {
    "h": 226.341,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40237,
    "c": 0.15827,
    "h": 266.5
  },
  "luminance": 0.06061
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #213D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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