#213C98#213C98

#213C98 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.154 H 266.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#213C98
RGBrgb(33, 60, 152)
HSLhsl(226, 64%, 36%)
HSVhsv(226, 78%, 60%)
CMYKcmyk(78.3%, 60.5%, 0%, 40.4%)
CIE-LABlab(28.96, 24.51, -53.22)
CIE-LCHlch(28.96, 58.59, 294.73°)
OKLaboklab(39.68% -0.0091 -0.1537)
OKLCHoklch(39.68% 0.154 266.6)
XYZxyz(7.9086, 5.8212, 30.4065)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213C98 #987D21
analogous
#217898 #213C98 #422198
triadic
#213C98 #98213C #3C9821
tetradic
#213C98 #982178 #987D21 #219842
square
#213C98 #982178 #987D21 #219842
split-complementary
#213C98 #984221 #789821
monochromatic
#0B1433 #162866 #213C98 #2C50CA #5976DB

Accessibility & contrast

On white

9.70
#213C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#213C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213C98
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213C98#FFFFFF#000000##FFFFFF
##213C981.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #213c98;
/* rgb */ color: rgb(33, 60, 152);
/* oklch */ color: oklch(39.7% 0.154 266.6);
Tailwind
colors: {
  custom: {
    50: '#7071b7',
    500: '#213c98',
    950: '#000000',
  },
}
SCSS
$custom: #213c98;
$custom-light: #7071b7;
$custom-dark: #000000;
JSON
{
  "hex": "#213c98",
  "rgb": {
    "r": 33,
    "g": 60,
    "b": 152
  },
  "hsl": {
    "h": 226.387,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39679,
    "c": 0.15401,
    "h": 266.6
  },
  "luminance": 0.05822
}

Semantic roles & 50–950 ramp

primary
#213C98
secondary
#BFA756
accent
#C140E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213C98

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

Preview Lab → · Contrast checker → · Palette generator →

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