#213F8B#213F8B

#213F8B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.132 H 264.7°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#213F8B
RGBrgb(33, 63, 139)
HSLhsl(223, 62%, 34%)
HSVhsv(223, 76%, 55%)
CMYKcmyk(76.3%, 54.7%, 0%, 45.5%)
CIE-LABlab(28.75, 17.32, -45.57)
CIE-LCHlch(28.75, 48.75, 290.81°)
OKLaboklab(39.2% -0.0121 -0.1312)
OKLCHoklch(39.2% 0.132 264.7)
XYZxyz(7.0633, 5.7417, 25.1571)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213F8B #8B6D21
analogous
#21748B #213F8B #38218B
triadic
#213F8B #8B213F #3F8B21
tetradic
#213F8B #8B2174 #8B6D21 #218B38
square
#213F8B #8B2174 #8B6D21 #218B38
split-complementary
#213F8B #8B3821 #748B21
monochromatic
#0A1228 #15295A #213F8B #2D55BC #5176D6

Accessibility & contrast

On white

9.77
#213F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#213F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213F8B
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213F8B#FFFFFF#000000##FFFFFF
##213F8B1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06498E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #213f8b;
/* rgb */ color: rgb(33, 63, 139);
/* oklch */ color: oklch(39.2% 0.132 264.7);
Tailwind
colors: {
  custom: {
    50: '#6c73ad',
    500: '#213f8b',
    950: '#000000',
  },
}
SCSS
$custom: #213f8b;
$custom-light: #6c73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#213f8b",
  "rgb": {
    "r": 33,
    "g": 63,
    "b": 139
  },
  "hsl": {
    "h": 223.019,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39197,
    "c": 0.13177,
    "h": 264.7
  },
  "luminance": 0.05742
}

Semantic roles & 50–950 ramp

primary
#213F8B
secondary
#B99B4F
accent
#B743E5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #213F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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