#213F7B#213F7B

#213F7B is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.9% C 0.108 H 262.5°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#213F7B
RGBrgb(33, 63, 123)
HSLhsl(220, 58%, 31%)
HSVhsv(220, 73%, 48%)
CMYKcmyk(73.2%, 48.8%, 0%, 51.8%)
CIE-LABlab(27.59, 10.94, -37.46)
CIE-LCHlch(27.59, 39.03, 286.28°)
OKLaboklab(37.95% -0.0142 -0.1074)
OKLCHoklch(37.95% 0.108 262.5)
XYZxyz(5.9786, 5.3078, 19.4445)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213F7B #7B5D21
analogous
#216C7B #213F7B #30217B
triadic
#213F7B #7B213F #3F7B21
tetradic
#213F7B #7B216C #7B5D21 #217B30
square
#213F7B #7B216C #7B5D21 #217B30
split-complementary
#213F7B #7B3021 #6C7B21
monochromatic
#070E1A #14264B #213F7B #2E58AB #4875CE

Accessibility & contrast

On white

10.19
#213F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#213F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213F7B
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213F7B#FFFFFF#000000##FFFFFF
##213F7B1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F467D
Deuteranopia (green-blind)
#0B3D7A
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #213f7b;
/* rgb */ color: rgb(33, 63, 123);
/* oklch */ color: oklch(37.9% 0.108 262.5);
Tailwind
colors: {
  custom: {
    50: '#6973a2',
    500: '#213f7b',
    950: '#000000',
  },
}
SCSS
$custom: #213f7b;
$custom-light: #6973a2;
$custom-dark: #000000;
JSON
{
  "hex": "#213f7b",
  "rgb": {
    "r": 33,
    "g": 63,
    "b": 123
  },
  "hsl": {
    "h": 220,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37946,
    "c": 0.10831,
    "h": 262.5
  },
  "luminance": 0.05308
}

Semantic roles & 50–950 ramp

primary
#213F7B
secondary
#AE8D4A
accent
#AE47E1
background
#F6F6FA
surface
#EBECF3
border
#C6C7CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #213F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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