#213198#213198

#213198 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.167 H 269.2°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#213198
RGBrgb(33, 49, 152)
HSLhsl(232, 64%, 36%)
HSVhsv(232, 78%, 60%)
CMYKcmyk(78.3%, 67.8%, 0%, 40.4%)
CIE-LABlab(26.12, 31.88, -57.86)
CIE-LCHlch(26.12, 66.07, 298.85°)
OKLaboklab(37.58% -0.0022 -0.1675)
OKLCHoklch(37.58% 0.167 269.2)
XYZxyz(7.3911, 4.7861, 30.2340)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213198 #988821
analogous
#216D98 #213198 #4D2198
triadic
#213198 #982131 #319821
tetradic
#213198 #98216D #988821 #21984D
square
#213198 #98216D #988821 #21984D
split-complementary
#213198 #984D21 #6D9821
monochromatic
#0B1133 #162166 #213198 #2C41CA #596ADB

Accessibility & contrast

On white

10.73
#213198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#213198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213198
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213198#FFFFFF#000000##FFFFFF
##2131981.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #213198;
/* rgb */ color: rgb(33, 49, 152);
/* oklch */ color: oklch(37.6% 0.167 269.2);
Tailwind
colors: {
  custom: {
    50: '#7169b7',
    500: '#213198',
    950: '#000000',
  },
}
SCSS
$custom: #213198;
$custom-light: #7169b7;
$custom-dark: #000000;
JSON
{
  "hex": "#213198",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 231.933,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37583,
    "c": 0.16748,
    "h": 269.2
  },
  "luminance": 0.04787
}

Semantic roles & 50–950 ramp

primary
#213198
secondary
#BFB156
accent
#D140E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #213198

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

Preview Lab → · Contrast checker → · Palette generator →

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