#213B9A#213B9A

#213B9A is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.158 H 267.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#213B9A
RGBrgb(33, 59, 154)
HSLhsl(227, 65%, 37%)
HSVhsv(227, 79%, 60%)
CMYKcmyk(78.6%, 61.7%, 0%, 39.6%)
CIE-LABlab(28.86, 25.96, -54.59)
CIE-LCHlch(28.86, 60.45, 295.43°)
OKLaboklab(39.66% -0.0084 -0.1578)
OKLCHoklch(39.66% 0.158 267)
XYZxyz(8.0219, 5.7835, 31.2591)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213B9A #9A8021
analogous
#21789A #213B9A #43219A
triadic
#213B9A #9A213B #3B9A21
tetradic
#213B9A #9A2178 #9A8021 #219A43
square
#213B9A #9A2178 #9A8021 #219A43
split-complementary
#213B9A #9A4321 #789A21
monochromatic
#0B1435 #162868 #213B9A #2C4ECC #5A76DC

Accessibility & contrast

On white

9.74
#213B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#213B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213B9A
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213B9A#FFFFFF#000000##FFFFFF
##213B9A1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #213b9a;
/* rgb */ color: rgb(33, 59, 154);
/* oklch */ color: oklch(39.7% 0.158 267.0);
Tailwind
colors: {
  custom: {
    50: '#7070b9',
    500: '#213b9a',
    950: '#000000',
  },
}
SCSS
$custom: #213b9a;
$custom-light: #7070b9;
$custom-dark: #000000;
JSON
{
  "hex": "#213b9a",
  "rgb": {
    "r": 33,
    "g": 59,
    "b": 154
  },
  "hsl": {
    "h": 227.107,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3966,
    "c": 0.15802,
    "h": 267
  },
  "luminance": 0.05784
}

Semantic roles & 50–950 ramp

primary
#213B9A
secondary
#C0A957
accent
#C440E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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