#213A8F#213A8F

#213A8F is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.5% C 0.144 H 266.8°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#213A8F
RGBrgb(33, 58, 143)
HSLhsl(226, 63%, 35%)
HSVhsv(226, 77%, 56%)
CMYKcmyk(76.9%, 59.4%, 0%, 43.9%)
CIE-LABlab(27.66, 22.35, -49.81)
CIE-LCHlch(27.66, 54.59, 294.17°)
OKLaboklab(38.48% -0.0079 -0.1438)
OKLCHoklch(38.48% 0.144 266.8)
XYZxyz(7.0964, 5.3318, 26.6364)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213A8F #8F7621
analogous
#21718F #213A8F #3F218F
triadic
#213A8F #8F213A #3A8F21
tetradic
#213A8F #8F2171 #8F7621 #218F3F
square
#213A8F #8F2171 #8F7621 #218F3F
split-complementary
#213A8F #8F3F21 #718F21
monochromatic
#0A122C #16265D #213A8F #2C4EC1 #5371D7

Accessibility & contrast

On white

10.16
#213A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #213A8F
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213A8F#FFFFFF#000000##FFFFFF
##213A8F1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #213a8f;
/* rgb */ color: rgb(33, 58, 143);
/* oklch */ color: oklch(38.5% 0.144 266.8);
Tailwind
colors: {
  custom: {
    50: '#6e6fb1',
    500: '#213a8f',
    950: '#000000',
  },
}
SCSS
$custom: #213a8f;
$custom-light: #6e6fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#213a8f",
  "rgb": {
    "r": 33,
    "g": 58,
    "b": 143
  },
  "hsl": {
    "h": 226.364,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38476,
    "c": 0.14399,
    "h": 266.8
  },
  "luminance": 0.05333
}

Semantic roles & 50–950 ramp

primary
#213A8F
secondary
#BBA351
accent
#C042E6
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #213A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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