#213B9D#213B9D

#213B9D is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.162 H 267.0°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#213B9D
RGBrgb(33, 59, 157)
HSLhsl(227, 65%, 37%)
HSVhsv(227, 79%, 62%)
CMYKcmyk(79%, 62.4%, 0%, 38.4%)
CIE-LABlab(29.12, 27.12, -55.99)
CIE-LCHlch(29.12, 62.22, 295.85°)
OKLaboklab(39.93% -0.0084 -0.1619)
OKLCHoklch(39.93% 0.162 267)
XYZxyz(8.2748, 5.8846, 32.5915)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213B9D #9D8321
analogous
#21799D #213B9D #45219D
triadic
#213B9D #9D213B #3B9D21
tetradic
#213B9D #9D2179 #9D8321 #219D45
square
#213B9D #9D2179 #9D8321 #219D45
split-complementary
#213B9D #9D4521 #799D21
monochromatic
#0C1538 #16286A #213B9D #2C4ED0 #5C77DD

Accessibility & contrast

On white

9.65
#213B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#213B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213B9D
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213B9D#FFFFFF#000000##FFFFFF
##213B9D1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#005466
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #213b9d;
/* rgb */ color: rgb(33, 59, 157);
/* oklch */ color: oklch(39.9% 0.162 267.0);
Tailwind
colors: {
  custom: {
    50: '#7170bb',
    500: '#213b9d',
    950: '#000000',
  },
}
SCSS
$custom: #213b9d;
$custom-light: #7170bb;
$custom-dark: #000000;
JSON
{
  "hex": "#213b9d",
  "rgb": {
    "r": 33,
    "g": 59,
    "b": 157
  },
  "hsl": {
    "h": 227.419,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39933,
    "c": 0.16212,
    "h": 267
  },
  "luminance": 0.05886
}

Semantic roles & 50–950 ramp

primary
#213B9D
secondary
#C1AB59
accent
#C540E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #213B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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