#213C9D#213C9D

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

Color values

HEX#213C9D
RGBrgb(33, 60, 157)
HSLhsl(227, 65%, 37%)
HSVhsv(227, 79%, 62%)
CMYKcmyk(79%, 61.8%, 0%, 38.4%)
CIE-LABlab(29.38, 26.45, -55.56)
CIE-LCHlch(29.38, 61.54, 295.45°)
OKLaboklab(40.13% -0.009 -0.1606)
OKLCHoklch(40.13% 0.161 266.8)
XYZxyz(8.3267, 5.9884, 32.6088)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213C9D #9D8221
analogous
#217A9D #213C9D #44219D
triadic
#213C9D #9D213C #3C9D21
tetradic
#213C9D #9D217A #9D8221 #219D44
square
#213C9D #9D217A #9D8221 #219D44
split-complementary
#213C9D #9D4421 #7A9D21
monochromatic
#0C1538 #16296A #213C9D #2C4FD0 #5C78DD

Accessibility & contrast

On white

9.56
#213C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #213C9D
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213C9D#FFFFFF#000000##FFFFFF
##213C9D1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #213c9d;
/* rgb */ color: rgb(33, 60, 157);
/* oklch */ color: oklch(40.1% 0.161 266.8);
Tailwind
colors: {
  custom: {
    50: '#7171bb',
    500: '#213c9d',
    950: '#000000',
  },
}
SCSS
$custom: #213c9d;
$custom-light: #7171bb;
$custom-dark: #000000;
JSON
{
  "hex": "#213c9d",
  "rgb": {
    "r": 33,
    "g": 60,
    "b": 157
  },
  "hsl": {
    "h": 226.935,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40129,
    "c": 0.16088,
    "h": 266.8
  },
  "luminance": 0.05989
}

Semantic roles & 50–950 ramp

primary
#213C9D
secondary
#C1AA59
accent
#C440E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #213C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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