#213BA1#213BA1

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

Color values

HEX#213BA1
RGBrgb(33, 59, 161)
HSLhsl(228, 66%, 38%)
HSVhsv(228, 80%, 63%)
CMYKcmyk(79.5%, 63.4%, 0%, 36.9%)
CIE-LABlab(29.47, 28.66, -57.84)
CIE-LCHlch(29.47, 64.55, 296.36°)
OKLaboklab(40.3% -0.0084 -0.1673)
OKLCHoklch(40.3% 0.168 267.1)
XYZxyz(8.6219, 6.0235, 34.4195)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213BA1 #A18721
analogous
#217BA1 #213BA1 #4721A1
triadic
#213BA1 #A1213B #3BA121
tetradic
#213BA1 #A1217B #A18721 #21A147
square
#213BA1 #A1217B #A18721 #21A147
split-complementary
#213BA1 #A14721 #7BA121
monochromatic
#0C163B #17286E #213BA1 #2C4ED4 #5E78DE

Accessibility & contrast

On white

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

On black

2.20
#213BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##213BA1#FFFFFF#000000##FFFFFF
##213BA11.009.522.209.52
#FFFFFF9.521.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #213ba1;
/* rgb */ color: rgb(33, 59, 161);
/* oklch */ color: oklch(40.3% 0.168 267.1);
Tailwind
colors: {
  custom: {
    50: '#7270be',
    500: '#213ba1',
    950: '#000000',
  },
}
SCSS
$custom: #213ba1;
$custom-light: #7270be;
$custom-dark: #000000;
JSON
{
  "hex": "#213ba1",
  "rgb": {
    "r": 33,
    "g": 59,
    "b": 161
  },
  "hsl": {
    "h": 227.813,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40303,
    "c": 0.16753,
    "h": 267.1
  },
  "luminance": 0.06024
}

Semantic roles & 50–950 ramp

primary
#213BA1
secondary
#C3AE5B
accent
#C63FE9
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #213BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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