#213AA7#213AA7

#213AA7 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.7% C 0.177 H 267.4°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#213AA7
RGBrgb(33, 58, 167)
HSLhsl(229, 67%, 39%)
HSVhsv(229, 80%, 65%)
CMYKcmyk(80.2%, 65.3%, 0%, 34.5%)
CIE-LABlab(29.76, 31.61, -60.99)
CIE-LCHlch(29.76, 68.70, 297.40°)
OKLaboklab(40.68% -0.008 -0.1766)
OKLCHoklch(40.68% 0.177 267.4)
XYZxyz(9.1129, 6.1384, 37.2563)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213AA7 #A78E21
analogous
#217DA7 #213AA7 #4B21A7
triadic
#213AA7 #A7213A #3AA721
tetradic
#213AA7 #A7217D #A78E21 #21A74B
square
#213AA7 #A7217D #A78E21 #21A74B
split-complementary
#213AA7 #A74B21 #7DA721
monochromatic
#0D1741 #172874 #213AA7 #2F4ED6 #627AE0

Accessibility & contrast

On white

9.43
#213AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#213AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213AA7
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213AA7#FFFFFF#000000##FFFFFF
##213AA71.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #213aa7;
/* rgb */ color: rgb(33, 58, 167);
/* oklch */ color: oklch(40.7% 0.177 267.4);
Tailwind
colors: {
  custom: {
    50: '#7470c2',
    500: '#213aa7',
    950: '#000000',
  },
}
SCSS
$custom: #213aa7;
$custom-light: #7470c2;
$custom-dark: #000000;
JSON
{
  "hex": "#213aa7",
  "rgb": {
    "r": 33,
    "g": 58,
    "b": 167
  },
  "hsl": {
    "h": 228.806,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40681,
    "c": 0.17673,
    "h": 267.4
  },
  "luminance": 0.06139
}

Semantic roles & 50–950 ramp

primary
#213AA7
secondary
#C5B25F
accent
#CA3EEA
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #213AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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