#213EA7#213EA7

#213EA7 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.172 H 266.6°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#213EA7
RGBrgb(33, 62, 167)
HSLhsl(227, 67%, 39%)
HSVhsv(227, 80%, 65%)
CMYKcmyk(80.2%, 62.9%, 0%, 34.5%)
CIE-LABlab(30.78, 28.96, -59.32)
CIE-LCHlch(30.78, 66.01, 296.02°)
OKLaboklab(41.43% -0.0103 -0.1716)
OKLCHoklch(41.43% 0.172 266.6)
XYZxyz(9.3224, 6.5575, 37.3261)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213EA7 #A78A21
analogous
#2181A7 #213EA7 #4721A7
triadic
#213EA7 #A7213E #3EA721
tetradic
#213EA7 #A72181 #A78A21 #21A747
square
#213EA7 #A72181 #A78A21 #21A747
split-complementary
#213EA7 #A74721 #81A721
monochromatic
#0D1841 #172B74 #213EA7 #2F53D6 #627EE0

Accessibility & contrast

On white

9.08
#213EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#213EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213EA7
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213EA7#FFFFFF#000000##FFFFFF
##213EA71.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #213ea7;
/* rgb */ color: rgb(33, 62, 167);
/* oklch */ color: oklch(41.4% 0.172 266.6);
Tailwind
colors: {
  custom: {
    50: '#7473c2',
    500: '#213ea7',
    950: '#000000',
  },
}
SCSS
$custom: #213ea7;
$custom-light: #7473c2;
$custom-dark: #000000;
JSON
{
  "hex": "#213ea7",
  "rgb": {
    "r": 33,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 227.015,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41433,
    "c": 0.17193,
    "h": 266.6
  },
  "luminance": 0.06559
}

Semantic roles & 50–950 ramp

primary
#213EA7
secondary
#C5AF5F
accent
#C53EEA
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #213EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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