#213D7F#213D7F

#213D7F is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.8% C 0.117 H 264.3°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#213D7F
RGBrgb(33, 61, 127)
HSLhsl(222, 59%, 31%)
HSVhsv(222, 74%, 50%)
CMYKcmyk(74%, 52%, 0%, 50.2%)
CIE-LABlab(27.28, 13.93, -40.49)
CIE-LCHlch(27.28, 42.81, 288.98°)
OKLaboklab(37.79% -0.0117 -0.1163)
OKLCHoklch(37.79% 0.117 264.3)
XYZxyz(6.1254, 5.1925, 20.7540)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D7F #7F6321
analogous
#216C7F #213D7F #34217F
triadic
#213D7F #7F213D #3D7F21
tetradic
#213D7F #7F216C #7F6321 #217F34
square
#213D7F #7F216C #7F6321 #217F34
split-complementary
#213D7F #7F3421 #6C7F21
monochromatic
#080E1E #14264E #213D7F #2E54B0 #4A72D0

Accessibility & contrast

On white

10.30
#213D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#213D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213D7F
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D7F#FFFFFF#000000##FFFFFF
##213D7F1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164581
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004D58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #213d7f;
/* rgb */ color: rgb(33, 61, 127);
/* oklch */ color: oklch(37.8% 0.117 264.3);
Tailwind
colors: {
  custom: {
    50: '#6a72a5',
    500: '#213d7f',
    950: '#000000',
  },
}
SCSS
$custom: #213d7f;
$custom-light: #6a72a5;
$custom-dark: #000000;
JSON
{
  "hex": "#213d7f",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 127
  },
  "hsl": {
    "h": 222.128,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37794,
    "c": 0.11689,
    "h": 264.3
  },
  "luminance": 0.05193
}

Semantic roles & 50–950 ramp

primary
#213D7F
secondary
#B2934A
accent
#B346E2
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #213D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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