#213F8F#213F8F

#213F8F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.138 H 265.1°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#213F8F
RGBrgb(33, 63, 143)
HSLhsl(224, 63%, 35%)
HSVhsv(224, 77%, 56%)
CMYKcmyk(76.9%, 55.9%, 0%, 43.9%)
CIE-LABlab(29.06, 18.91, -47.54)
CIE-LCHlch(29.06, 51.16, 291.69°)
OKLaboklab(39.53% -0.0118 -0.137)
OKLCHoklch(39.53% 0.138 265.1)
XYZxyz(7.3609, 5.8607, 26.7246)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213F8F #8F7121
analogous
#21768F #213F8F #3A218F
triadic
#213F8F #8F213F #3F8F21
tetradic
#213F8F #8F2176 #8F7121 #218F3A
square
#213F8F #8F2176 #8F7121 #218F3A
split-complementary
#213F8F #8F3A21 #768F21
monochromatic
#0A132C #16295D #213F8F #2C55C1 #5377D7

Accessibility & contrast

On white

9.67
#213F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#213F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213F8F
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213F8F#FFFFFF#000000##FFFFFF
##213F8F1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #213f8f;
/* rgb */ color: rgb(33, 63, 143);
/* oklch */ color: oklch(39.5% 0.138 265.1);
Tailwind
colors: {
  custom: {
    50: '#6d73b0',
    500: '#213f8f',
    950: '#000000',
  },
}
SCSS
$custom: #213f8f;
$custom-light: #6d73b0;
$custom-dark: #000000;
JSON
{
  "hex": "#213f8f",
  "rgb": {
    "r": 33,
    "g": 63,
    "b": 143
  },
  "hsl": {
    "h": 223.636,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39527,
    "c": 0.1375,
    "h": 265.1
  },
  "luminance": 0.05862
}

Semantic roles & 50–950 ramp

primary
#213F8F
secondary
#BB9E51
accent
#B942E6
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #213F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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