#213D8B#213D8B

#213D8B is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.8% C 0.134 H 265.5°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#213D8B
RGBrgb(33, 61, 139)
HSLhsl(224, 62%, 34%)
HSVhsv(224, 76%, 55%)
CMYKcmyk(76.3%, 56.1%, 0%, 45.5%)
CIE-LABlab(28.18, 18.70, -46.50)
CIE-LCHlch(28.18, 50.12, 291.91°)
OKLaboklab(38.76% -0.0105 -0.134)
OKLCHoklch(38.76% 0.134 265.5)
XYZxyz(6.9545, 5.5241, 25.1208)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D8B #8B6F21
analogous
#21728B #213D8B #3A218B
triadic
#213D8B #8B213D #3D8B21
tetradic
#213D8B #8B2172 #8B6F21 #218B3A
square
#213D8B #8B2172 #8B6F21 #218B3A
split-complementary
#213D8B #8B3A21 #728B21
monochromatic
#0A1228 #15275A #213D8B #2D53BC #5174D6

Accessibility & contrast

On white

9.98
#213D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#213D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213D8B
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D8B#FFFFFF#000000##FFFFFF
##213D8B1.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #213d8b;
/* rgb */ color: rgb(33, 61, 139);
/* oklch */ color: oklch(38.8% 0.134 265.5);
Tailwind
colors: {
  custom: {
    50: '#6c72ad',
    500: '#213d8b',
    950: '#000000',
  },
}
SCSS
$custom: #213d8b;
$custom-light: #6c72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#213d8b",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 139
  },
  "hsl": {
    "h": 224.151,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38764,
    "c": 0.13439,
    "h": 265.5
  },
  "luminance": 0.05525
}

Semantic roles & 50–950 ramp

primary
#213D8B
secondary
#B99D4F
accent
#BA43E5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #213D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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