#213D8F#213D8F

#213D8F is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.1% C 0.140 H 265.8°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#213D8F
RGBrgb(33, 61, 143)
HSLhsl(225, 63%, 35%)
HSVhsv(225, 77%, 56%)
CMYKcmyk(76.9%, 57.3%, 0%, 43.9%)
CIE-LABlab(28.49, 20.29, -48.45)
CIE-LCHlch(28.49, 52.53, 292.72°)
OKLaboklab(39.1% -0.0102 -0.1397)
OKLCHoklch(39.1% 0.14 265.8)
XYZxyz(7.2521, 5.6432, 26.6883)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D8F #8F7321
analogous
#21748F #213D8F #3C218F
triadic
#213D8F #8F213D #3D8F21
tetradic
#213D8F #8F2174 #8F7321 #218F3C
square
#213D8F #8F2174 #8F7321 #218F3C
split-complementary
#213D8F #8F3C21 #748F21
monochromatic
#0A132C #16285D #213D8F #2C52C1 #5375D7

Accessibility & contrast

On white

9.86
#213D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#213D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213D8F
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D8F#FFFFFF#000000##FFFFFF
##213D8F1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #213d8f;
/* rgb */ color: rgb(33, 61, 143);
/* oklch */ color: oklch(39.1% 0.140 265.8);
Tailwind
colors: {
  custom: {
    50: '#6d72b0',
    500: '#213d8f',
    950: '#000000',
  },
}
SCSS
$custom: #213d8f;
$custom-light: #6d72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#213d8f",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 143
  },
  "hsl": {
    "h": 224.727,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39101,
    "c": 0.1401,
    "h": 265.8
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#213D8F
secondary
#BBA051
accent
#BC42E6
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080711
muted
#7B7A80

Preview Lab

Preview with #213D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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