#213AA8#213AA8

#213AA8 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.178 H 267.4°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#213AA8
RGBrgb(33, 58, 168)
HSLhsl(229, 67%, 39%)
HSVhsv(229, 80%, 66%)
CMYKcmyk(80.4%, 65.5%, 0%, 34.1%)
CIE-LABlab(29.85, 31.99, -61.44)
CIE-LCHlch(29.85, 69.27, 297.50°)
OKLaboklab(40.78% -0.008 -0.1779)
OKLCHoklch(40.78% 0.178 267.4)
XYZxyz(9.2057, 6.1755, 37.7450)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213AA8 #A88F21
analogous
#217EA8 #213AA8 #4C21A8
triadic
#213AA8 #A8213A #3AA821
tetradic
#213AA8 #A8217E #A88F21 #21A84C
square
#213AA8 #A8217E #A88F21 #21A84C
split-complementary
#213AA8 #A84C21 #7EA821
monochromatic
#0D1742 #172875 #213AA8 #304FD6 #637AE0

Accessibility & contrast

On white

9.39
#213AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#213AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213AA8
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213AA8#FFFFFF#000000##FFFFFF
##213AA81.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #213aa8;
/* rgb */ color: rgb(33, 58, 168);
/* oklch */ color: oklch(40.8% 0.178 267.4);
Tailwind
colors: {
  custom: {
    50: '#7470c3',
    500: '#213aa8',
    950: '#000000',
  },
}
SCSS
$custom: #213aa8;
$custom-light: #7470c3;
$custom-dark: #000000;
JSON
{
  "hex": "#213aa8",
  "rgb": {
    "r": 33,
    "g": 58,
    "b": 168
  },
  "hsl": {
    "h": 228.889,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40777,
    "c": 0.17805,
    "h": 267.4
  },
  "luminance": 0.06177
}

Semantic roles & 50–950 ramp

primary
#213AA8
secondary
#C5B35F
accent
#CA3EEA
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #213AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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