#213D8E#213D8E

#213D8E is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.0% C 0.139 H 265.8°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#213D8E
RGBrgb(33, 61, 142)
HSLhsl(225, 62%, 34%)
HSVhsv(225, 77%, 56%)
CMYKcmyk(76.8%, 57%, 0%, 44.3%)
CIE-LABlab(28.41, 19.89, -47.96)
CIE-LCHlch(28.41, 51.93, 292.52°)
OKLaboklab(39.02% -0.0103 -0.1383)
OKLCHoklch(39.02% 0.139 265.8)
XYZxyz(7.1767, 5.6130, 26.2911)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D8E #8E7221
analogous
#21748E #213D8E #3C218E
triadic
#213D8E #8E213D #3D8E21
tetradic
#213D8E #8E2174 #8E7221 #218E3C
square
#213D8E #8E2174 #8E7221 #218E3C
split-complementary
#213D8E #8E3C21 #748E21
monochromatic
#0A122B #15285C #213D8E #2D52C0 #5275D7

Accessibility & contrast

On white

9.89
#213D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#213D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213D8E
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D8E#FFFFFF#000000##FFFFFF
##213D8E1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #213d8e;
/* rgb */ color: rgb(33, 61, 142);
/* oklch */ color: oklch(39.0% 0.139 265.8);
Tailwind
colors: {
  custom: {
    50: '#6d72b0',
    500: '#213d8e',
    950: '#000000',
  },
}
SCSS
$custom: #213d8e;
$custom-light: #6d72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#213d8e",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 142
  },
  "hsl": {
    "h": 224.587,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39016,
    "c": 0.13868,
    "h": 265.8
  },
  "luminance": 0.05614
}

Semantic roles & 50–950 ramp

primary
#213D8E
secondary
#BA9F50
accent
#BC42E5
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #213D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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