#213B98#213B98

#213B98 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.155 H 266.9°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#213B98
RGBrgb(33, 59, 152)
HSLhsl(227, 64%, 36%)
HSVhsv(227, 78%, 60%)
CMYKcmyk(78.3%, 61.2%, 0%, 40.4%)
CIE-LABlab(28.69, 25.19, -53.65)
CIE-LCHlch(28.69, 59.27, 295.15°)
OKLaboklab(39.48% -0.0084 -0.155)
OKLCHoklch(39.48% 0.155 266.9)
XYZxyz(7.8567, 5.7174, 30.3892)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213B98 #987E21
analogous
#217798 #213B98 #432198
triadic
#213B98 #98213B #3B9821
tetradic
#213B98 #982177 #987E21 #219843
square
#213B98 #982177 #987E21 #219843
split-complementary
#213B98 #984321 #779821
monochromatic
#0B1433 #162766 #213B98 #2C4FCA #5975DB

Accessibility & contrast

On white

9.80
#213B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#213B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213B98
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213B98#FFFFFF#000000##FFFFFF
##213B981.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #213b98;
/* rgb */ color: rgb(33, 59, 152);
/* oklch */ color: oklch(39.5% 0.155 266.9);
Tailwind
colors: {
  custom: {
    50: '#7070b7',
    500: '#213b98',
    950: '#000000',
  },
}
SCSS
$custom: #213b98;
$custom-light: #7070b7;
$custom-dark: #000000;
JSON
{
  "hex": "#213b98",
  "rgb": {
    "r": 33,
    "g": 59,
    "b": 152
  },
  "hsl": {
    "h": 226.891,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39479,
    "c": 0.15527,
    "h": 266.9
  },
  "luminance": 0.05718
}

Semantic roles & 50–950 ramp

primary
#213B98
secondary
#BFA856
accent
#C340E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213B98

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

Preview Lab → · Contrast checker → · Palette generator →

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