#213A8A#213A8A

#213A8A is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.0% C 0.137 H 266.6°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#213A8A
RGBrgb(33, 58, 138)
HSLhsl(226, 61%, 34%)
HSVhsv(226, 76%, 54%)
CMYKcmyk(76.1%, 58%, 0%, 45.9%)
CIE-LABlab(27.25, 20.38, -47.38)
CIE-LCHlch(27.25, 51.58, 293.28°)
OKLaboklab(38.04% -0.0081 -0.1366)
OKLCHoklch(38.04% 0.137 266.6)
XYZxyz(6.7261, 5.1837, 24.6859)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213A8A #8A7121
analogous
#216E8A #213A8A #3C218A
triadic
#213A8A #8A213A #3A8A21
tetradic
#213A8A #8A216E #8A7121 #218A3C
square
#213A8A #8A216E #8A7121 #218A3C
split-complementary
#213A8A #8A3C21 #6E8A21
monochromatic
#091027 #152559 #213A8A #2D4FBB #5070D5

Accessibility & contrast

On white

10.31
#213A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#213A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213A8A
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213A8A#FFFFFF#000000##FFFFFF
##213A8A1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #213a8a;
/* rgb */ color: rgb(33, 58, 138);
/* oklch */ color: oklch(38.0% 0.137 266.6);
Tailwind
colors: {
  custom: {
    50: '#6c6fad',
    500: '#213a8a',
    950: '#000000',
  },
}
SCSS
$custom: #213a8a;
$custom-light: #6c6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#213a8a",
  "rgb": {
    "r": 33,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 225.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38042,
    "c": 0.13687,
    "h": 266.6
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#213A8A
secondary
#B99F4E
accent
#BE43E5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #213A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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