#213A9B#213A9B

#213A9B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.161 H 267.2°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#213A9B
RGBrgb(33, 58, 155)
HSLhsl(228, 65%, 37%)
HSVhsv(228, 79%, 61%)
CMYKcmyk(78.7%, 62.6%, 0%, 39.2%)
CIE-LABlab(28.68, 27.03, -55.49)
CIE-LCHlch(28.68, 61.72, 295.97°)
OKLaboklab(39.56% -0.0077 -0.1604)
OKLCHoklch(39.56% 0.161 267.2)
XYZxyz(8.0546, 5.7151, 31.6826)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213A9B #9B8221
analogous
#21779B #213A9B #45219B
triadic
#213A9B #9B213A #3A9B21
tetradic
#213A9B #9B2177 #9B8221 #219B45
square
#213A9B #9B2177 #9B8221 #219B45
split-complementary
#213A9B #9B4521 #779B21
monochromatic
#0C1436 #162769 #213A9B #2C4DCD #5A75DC

Accessibility & contrast

On white

9.80
#213A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#213A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213A9B
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213A9B#FFFFFF#000000##FFFFFF
##213A9B1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #213a9b;
/* rgb */ color: rgb(33, 58, 155);
/* oklch */ color: oklch(39.6% 0.161 267.2);
Tailwind
colors: {
  custom: {
    50: '#716fb9',
    500: '#213a9b',
    950: '#000000',
  },
}
SCSS
$custom: #213a9b;
$custom-light: #716fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#213a9b",
  "rgb": {
    "r": 33,
    "g": 58,
    "b": 155
  },
  "hsl": {
    "h": 227.705,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39555,
    "c": 0.16064,
    "h": 267.2
  },
  "luminance": 0.05716
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #213A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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