#213EA1#213EA1

#213EA1 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.9% C 0.164 H 266.4°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#213EA1
RGBrgb(33, 62, 161)
HSLhsl(226, 66%, 38%)
HSVhsv(226, 80%, 63%)
CMYKcmyk(79.5%, 61.5%, 0%, 36.9%)
CIE-LABlab(30.26, 26.65, -56.56)
CIE-LCHlch(30.26, 62.52, 295.23°)
OKLaboklab(40.89% -0.0103 -0.1635)
OKLCHoklch(40.89% 0.164 266.4)
XYZxyz(8.7806, 6.3408, 34.4724)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213EA1 #A18421
analogous
#217EA1 #213EA1 #4421A1
triadic
#213EA1 #A1213E #3EA121
tetradic
#213EA1 #A1217E #A18421 #21A144
square
#213EA1 #A1217E #A18421 #21A144
split-complementary
#213EA1 #A14421 #7EA121
monochromatic
#0C173B #172A6E #213EA1 #2C52D4 #5E7BDE

Accessibility & contrast

On white

9.26
#213EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#213EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213EA1
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213EA1#FFFFFF#000000##FFFFFF
##213EA11.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #213ea1;
/* rgb */ color: rgb(33, 62, 161);
/* oklch */ color: oklch(40.9% 0.164 266.4);
Tailwind
colors: {
  custom: {
    50: '#7272be',
    500: '#213ea1',
    950: '#000000',
  },
}
SCSS
$custom: #213ea1;
$custom-light: #7272be;
$custom-dark: #000000;
JSON
{
  "hex": "#213ea1",
  "rgb": {
    "r": 33,
    "g": 62,
    "b": 161
  },
  "hsl": {
    "h": 226.406,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40885,
    "c": 0.16384,
    "h": 266.4
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#213EA1
secondary
#C3AB5B
accent
#C23FE9
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #213EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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