#213498#213498

#213498 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.164 H 268.6°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#213498
RGBrgb(33, 52, 152)
HSLhsl(230, 64%, 36%)
HSVhsv(230, 78%, 60%)
CMYKcmyk(78.3%, 65.8%, 0%, 40.4%)
CIE-LABlab(26.86, 29.90, -56.64)
CIE-LCHlch(26.86, 64.04, 297.83°)
OKLaboklab(38.13% -0.004 -0.1639)
OKLCHoklch(38.13% 0.164 268.6)
XYZxyz(7.5207, 5.0455, 30.2772)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213498 #988521
analogous
#217098 #213498 #4A2198
triadic
#213498 #982134 #349821
tetradic
#213498 #982170 #988521 #21984A
square
#213498 #982170 #988521 #21984A
split-complementary
#213498 #984A21 #709821
monochromatic
#0B1233 #162366 #213498 #2C45CA #596DDB

Accessibility & contrast

On white

10.45
#213498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#213498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213498
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213498#FFFFFF#000000##FFFFFF
##2134981.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #213498;
/* rgb */ color: rgb(33, 52, 152);
/* oklch */ color: oklch(38.1% 0.164 268.6);
Tailwind
colors: {
  custom: {
    50: '#716bb7',
    500: '#213498',
    950: '#000000',
  },
}
SCSS
$custom: #213498;
$custom-light: #716bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#213498",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 152
  },
  "hsl": {
    "h": 230.42,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3813,
    "c": 0.16391,
    "h": 268.6
  },
  "luminance": 0.05046
}

Semantic roles & 50–950 ramp

primary
#213498
secondary
#BFAE56
accent
#CD40E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #213498

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

Preview Lab → · Contrast checker → · Palette generator →

#213498 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva