#213F8D#213F8D

#213F8D is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.135 H 264.9°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#213F8D
RGBrgb(33, 63, 141)
HSLhsl(223, 62%, 34%)
HSVhsv(223, 77%, 55%)
CMYKcmyk(76.6%, 55.3%, 0%, 44.7%)
CIE-LABlab(28.90, 18.11, -46.55)
CIE-LCHlch(28.90, 49.95, 291.26°)
OKLaboklab(39.36% -0.0119 -0.1341)
OKLCHoklch(39.36% 0.135 264.9)
XYZxyz(7.2107, 5.8006, 25.9337)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213F8D #8D6F21
analogous
#21758D #213F8D #39218D
triadic
#213F8D #8D213F #3F8D21
tetradic
#213F8D #8D2175 #8D6F21 #218D39
square
#213F8D #8D2175 #8D6F21 #218D39
split-complementary
#213F8D #8D3921 #758D21
monochromatic
#0A132A #15295B #213F8D #2D55BF #5277D6

Accessibility & contrast

On white

9.72
#213F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #213F8D
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213F8D#FFFFFF#000000##FFFFFF
##213F8D1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #213f8d;
/* rgb */ color: rgb(33, 63, 141);
/* oklch */ color: oklch(39.4% 0.135 264.9);
Tailwind
colors: {
  custom: {
    50: '#6d73af',
    500: '#213f8d',
    950: '#000000',
  },
}
SCSS
$custom: #213f8d;
$custom-light: #6d73af;
$custom-dark: #000000;
JSON
{
  "hex": "#213f8d",
  "rgb": {
    "r": 33,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 223.333,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39361,
    "c": 0.13465,
    "h": 264.9
  },
  "luminance": 0.05801
}

Semantic roles & 50–950 ramp

primary
#213F8D
secondary
#BA9C50
accent
#B843E5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #213F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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