#213B7E#213B7E

#213B7E is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.3% C 0.118 H 265.1°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#213B7E
RGBrgb(33, 59, 126)
HSLhsl(223, 58%, 31%)
HSVhsv(223, 74%, 49%)
CMYKcmyk(73.8%, 53.2%, 0%, 50.6%)
CIE-LABlab(26.61, 14.92, -40.93)
CIE-LCHlch(26.61, 43.57, 290.03°)
OKLaboklab(37.27% -0.01 -0.1176)
OKLCHoklch(37.27% 0.118 265.1)
XYZxyz(5.9557, 4.9570, 20.3775)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213B7E #7E6421
analogous
#21697E #213B7E #35217E
triadic
#213B7E #7E213B #3B7E21
tetradic
#213B7E #7E2169 #7E6421 #217E35
square
#213B7E #7E2169 #7E6421 #217E35
split-complementary
#213B7E #7E3521 #697E21
monochromatic
#080E1D #14244E #213B7E #2E52AE #4A6FD0

Accessibility & contrast

On white

10.54
#213B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#213B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213B7E
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213B7E#FFFFFF#000000##FFFFFF
##213B7E1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114380
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#004B56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #213b7e;
/* rgb */ color: rgb(33, 59, 126);
/* oklch */ color: oklch(37.3% 0.118 265.1);
Tailwind
colors: {
  custom: {
    50: '#6970a4',
    500: '#213b7e',
    950: '#000000',
  },
}
SCSS
$custom: #213b7e;
$custom-light: #6970a4;
$custom-dark: #000000;
JSON
{
  "hex": "#213b7e",
  "rgb": {
    "r": 33,
    "g": 59,
    "b": 126
  },
  "hsl": {
    "h": 223.226,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37265,
    "c": 0.11807,
    "h": 265.1
  },
  "luminance": 0.04958
}

Semantic roles & 50–950 ramp

primary
#213B7E
secondary
#B1944A
accent
#B646E2
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #213B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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