#213EA2#213EA2

#213EA2 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.165 H 266.4°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#213EA2
RGBrgb(33, 62, 162)
HSLhsl(227, 66%, 38%)
HSVhsv(227, 80%, 64%)
CMYKcmyk(79.6%, 61.7%, 0%, 36.5%)
CIE-LABlab(30.34, 27.03, -57.02)
CIE-LCHlch(30.34, 63.11, 295.37°)
OKLaboklab(40.98% -0.0103 -0.1649)
OKLCHoklch(40.98% 0.165 266.4)
XYZxyz(8.8691, 6.3762, 34.9387)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213EA2 #A28521
analogous
#217EA2 #213EA2 #4521A2
triadic
#213EA2 #A2213E #3EA221
tetradic
#213EA2 #A2217E #A28521 #21A245
square
#213EA2 #A2217E #A28521 #21A245
split-complementary
#213EA2 #A24521 #7EA221
monochromatic
#0C173C #172B6F #213EA2 #2C52D4 #5F7CDE

Accessibility & contrast

On white

9.23
#213EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#213EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213EA2
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213EA2#FFFFFF#000000##FFFFFF
##213EA21.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #213ea2;
/* rgb */ color: rgb(33, 62, 162);
/* oklch */ color: oklch(41.0% 0.165 266.4);
Tailwind
colors: {
  custom: {
    50: '#7273be',
    500: '#213ea2',
    950: '#000000',
  },
}
SCSS
$custom: #213ea2;
$custom-light: #7273be;
$custom-dark: #000000;
JSON
{
  "hex": "#213ea2",
  "rgb": {
    "r": 33,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 226.512,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40976,
    "c": 0.1652,
    "h": 266.4
  },
  "luminance": 0.06377
}

Semantic roles & 50–950 ramp

primary
#213EA2
secondary
#C3AC5C
accent
#C33FE9
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #213EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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