#213F7D#213F7D

#213F7D is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.1% C 0.111 H 262.8°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#213F7D
RGBrgb(33, 63, 125)
HSLhsl(220, 58%, 31%)
HSVhsv(220, 74%, 49%)
CMYKcmyk(73.6%, 49.6%, 0%, 51%)
CIE-LABlab(27.73, 11.74, -38.50)
CIE-LCHlch(27.73, 40.25, 286.96°)
OKLaboklab(38.1% -0.0139 -0.1104)
OKLCHoklch(38.1% 0.111 262.8)
XYZxyz(6.1051, 5.3584, 20.1106)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213F7D #7D5F21
analogous
#216D7D #213F7D #31217D
triadic
#213F7D #7D213F #3F7D21
tetradic
#213F7D #7D216D #7D5F21 #217D31
square
#213F7D #7D216D #7D5F21 #217D31
split-complementary
#213F7D #7D3121 #6D7D21
monochromatic
#070E1C #14274D #213F7D #2E57AD #4975CF

Accessibility & contrast

On white

10.14
#213F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#213F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213F7D
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213F7D#FFFFFF#000000##FFFFFF
##213F7D1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D467F
Deuteranopia (green-blind)
#053D7C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #213f7d;
/* rgb */ color: rgb(33, 63, 125);
/* oklch */ color: oklch(38.1% 0.111 262.8);
Tailwind
colors: {
  custom: {
    50: '#6973a3',
    500: '#213f7d',
    950: '#000000',
  },
}
SCSS
$custom: #213f7d;
$custom-light: #6973a3;
$custom-dark: #000000;
JSON
{
  "hex": "#213f7d",
  "rgb": {
    "r": 33,
    "g": 63,
    "b": 125
  },
  "hsl": {
    "h": 220.435,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38097,
    "c": 0.11128,
    "h": 262.8
  },
  "luminance": 0.05359
}

Semantic roles & 50–950 ramp

primary
#213F7D
secondary
#B08F4A
accent
#AF46E1
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #213F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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