#213A8D#213A8D

#213A8D is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.3% C 0.141 H 266.8°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#213A8D
RGBrgb(33, 58, 141)
HSLhsl(226, 62%, 34%)
HSVhsv(226, 77%, 55%)
CMYKcmyk(76.6%, 58.9%, 0%, 44.7%)
CIE-LABlab(27.50, 21.57, -48.84)
CIE-LCHlch(27.50, 53.39, 293.82°)
OKLaboklab(38.3% -0.008 -0.1409)
OKLCHoklch(38.3% 0.141 266.8)
XYZxyz(6.9463, 5.2718, 25.8456)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213A8D #8D7421
analogous
#21708D #213A8D #3E218D
triadic
#213A8D #8D213A #3A8D21
tetradic
#213A8D #8D2170 #8D7421 #218D3E
square
#213A8D #8D2170 #8D7421 #218D3E
split-complementary
#213A8D #8D3E21 #708D21
monochromatic
#0A112A #15265B #213A8D #2D4EBF #5271D6

Accessibility & contrast

On white

10.22
#213A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#213A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213A8D
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213A8D#FFFFFF#000000##FFFFFF
##213A8D1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #213a8d;
/* rgb */ color: rgb(33, 58, 141);
/* oklch */ color: oklch(38.3% 0.141 266.8);
Tailwind
colors: {
  custom: {
    50: '#6d6faf',
    500: '#213a8d',
    950: '#000000',
  },
}
SCSS
$custom: #213a8d;
$custom-light: #6d6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#213a8d",
  "rgb": {
    "r": 33,
    "g": 58,
    "b": 141
  },
  "hsl": {
    "h": 226.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38301,
    "c": 0.14116,
    "h": 266.8
  },
  "luminance": 0.05273
}

Semantic roles & 50–950 ramp

primary
#213A8D
secondary
#BAA150
accent
#C043E5
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #213A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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