#213AA4#213AA4

#213AA4 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.173 H 267.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#213AA4
RGBrgb(33, 58, 164)
HSLhsl(229, 66%, 39%)
HSVhsv(229, 80%, 64%)
CMYKcmyk(79.9%, 64.6%, 0%, 35.7%)
CIE-LABlab(29.48, 30.47, -59.63)
CIE-LCHlch(29.48, 66.97, 297.07°)
OKLaboklab(40.4% -0.0079 -0.1726)
OKLCHoklch(40.4% 0.173 267.4)
XYZxyz(8.8388, 6.0288, 35.8126)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213AA4 #A48B21
analogous
#217BA4 #213AA4 #4A21A4
triadic
#213AA4 #A4213A #3AA421
tetradic
#213AA4 #A4217B #A48B21 #21A44A
square
#213AA4 #A4217B #A48B21 #21A44A
split-complementary
#213AA4 #A44A21 #7BA421
monochromatic
#0C163E #172871 #213AA4 #2D4DD5 #6079DF

Accessibility & contrast

On white

9.52
#213AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#213AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213AA4
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213AA4#FFFFFF#000000##FFFFFF
##213AA41.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#003FA2
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #213aa4;
/* rgb */ color: rgb(33, 58, 164);
/* oklch */ color: oklch(40.4% 0.173 267.4);
Tailwind
colors: {
  custom: {
    50: '#7370c0',
    500: '#213aa4',
    950: '#000000',
  },
}
SCSS
$custom: #213aa4;
$custom-light: #7370c0;
$custom-dark: #000000;
JSON
{
  "hex": "#213aa4",
  "rgb": {
    "r": 33,
    "g": 58,
    "b": 164
  },
  "hsl": {
    "h": 228.55,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40396,
    "c": 0.17276,
    "h": 267.4
  },
  "luminance": 0.0603
}

Semantic roles & 50–950 ramp

primary
#213AA4
secondary
#C4B05D
accent
#C93EE9
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #213AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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