#213A9C#213A9C

#213A9C is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.162 H 267.3°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#213A9C
RGBrgb(33, 58, 156)
HSLhsl(228, 65%, 37%)
HSVhsv(228, 79%, 61%)
CMYKcmyk(78.8%, 62.8%, 0%, 38.8%)
CIE-LABlab(28.77, 27.41, -55.96)
CIE-LCHlch(28.77, 62.31, 296.10°)
OKLaboklab(39.65% -0.0078 -0.1618)
OKLCHoklch(39.65% 0.162 267.3)
XYZxyz(8.1389, 5.7488, 32.1267)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213A9C #9C8321
analogous
#21789C #213A9C #46219C
triadic
#213A9C #9C213A #3A9C21
tetradic
#213A9C #9C2178 #9C8321 #219C46
square
#213A9C #9C2178 #9C8321 #219C46
split-complementary
#213A9C #9C4621 #789C21
monochromatic
#0C1437 #162769 #213A9C #2C4DCF #5B75DC

Accessibility & contrast

On white

9.77
#213A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#213A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213A9C
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213A9C#FFFFFF#000000##FFFFFF
##213A9C1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#003E9A
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #213a9c;
/* rgb */ color: rgb(33, 58, 156);
/* oklch */ color: oklch(39.6% 0.162 267.3);
Tailwind
colors: {
  custom: {
    50: '#716fba',
    500: '#213a9c',
    950: '#000000',
  },
}
SCSS
$custom: #213a9c;
$custom-light: #716fba;
$custom-dark: #000000;
JSON
{
  "hex": "#213a9c",
  "rgb": {
    "r": 33,
    "g": 58,
    "b": 156
  },
  "hsl": {
    "h": 227.805,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39647,
    "c": 0.162,
    "h": 267.3
  },
  "luminance": 0.0575
}

Semantic roles & 50–950 ramp

primary
#213A9C
secondary
#C1AB58
accent
#C640E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #213A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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