#213F8A#213F8A

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

Color values

HEX#213F8A
RGBrgb(33, 63, 138)
HSLhsl(223, 61%, 34%)
HSVhsv(223, 76%, 54%)
CMYKcmyk(76.1%, 54.3%, 0%, 45.9%)
CIE-LABlab(28.68, 16.92, -45.07)
CIE-LCHlch(28.68, 48.14, 290.58°)
OKLaboklab(39.12% -0.0122 -0.1298)
OKLCHoklch(39.12% 0.13 264.6)
XYZxyz(6.9905, 5.7126, 24.7740)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213F8A #8A6C21
analogous
#21738A #213F8A #37218A
triadic
#213F8A #8A213F #3F8A21
tetradic
#213F8A #8A2173 #8A6C21 #218A37
square
#213F8A #8A2173 #8A6C21 #218A37
split-complementary
#213F8A #8A3721 #738A21
monochromatic
#091227 #152859 #213F8A #2D56BB #5076D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##213F8A#FFFFFF#000000##FFFFFF
##213F8A1.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)
#08498D
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #213f8a;
/* rgb */ color: rgb(33, 63, 138);
/* oklch */ color: oklch(39.1% 0.130 264.6);
Tailwind
colors: {
  custom: {
    50: '#6c73ad',
    500: '#213f8a',
    950: '#000000',
  },
}
SCSS
$custom: #213f8a;
$custom-light: #6c73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#213f8a",
  "rgb": {
    "r": 33,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 222.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39116,
    "c": 0.13033,
    "h": 264.6
  },
  "luminance": 0.05713
}

Semantic roles & 50–950 ramp

primary
#213F8A
secondary
#B99A4E
accent
#B643E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #213F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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