#213BA7#213BA7

#213BA7 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.9% C 0.176 H 267.2°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#213BA7
RGBrgb(33, 59, 167)
HSLhsl(228, 67%, 39%)
HSVhsv(228, 80%, 65%)
CMYKcmyk(80.2%, 64.7%, 0%, 34.5%)
CIE-LABlab(30.01, 30.95, -60.58)
CIE-LCHlch(30.01, 68.03, 297.06°)
OKLaboklab(40.87% -0.0086 -0.1753)
OKLCHoklch(40.87% 0.176 267.2)
XYZxyz(9.1638, 6.2402, 37.2732)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213BA7 #A78D21
analogous
#217EA7 #213BA7 #4A21A7
triadic
#213BA7 #A7213B #3BA721
tetradic
#213BA7 #A7217E #A78D21 #21A74A
square
#213BA7 #A7217E #A78D21 #21A74A
split-complementary
#213BA7 #A74A21 #7EA721
monochromatic
#0D1741 #172974 #213BA7 #2F50D6 #627BE0

Accessibility & contrast

On white

9.34
#213BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#213BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213BA7
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213BA7#FFFFFF#000000##FFFFFF
##213BA71.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #213ba7;
/* rgb */ color: rgb(33, 59, 167);
/* oklch */ color: oklch(40.9% 0.176 267.2);
Tailwind
colors: {
  custom: {
    50: '#7470c2',
    500: '#213ba7',
    950: '#000000',
  },
}
SCSS
$custom: #213ba7;
$custom-light: #7470c2;
$custom-dark: #000000;
JSON
{
  "hex": "#213ba7",
  "rgb": {
    "r": 33,
    "g": 59,
    "b": 167
  },
  "hsl": {
    "h": 228.358,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40867,
    "c": 0.17554,
    "h": 267.2
  },
  "luminance": 0.06241
}

Semantic roles & 50–950 ramp

primary
#213BA7
secondary
#C5B15F
accent
#C93EEA
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #213BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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