#213E98#213E98

#213E98 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.151 H 266.0°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#213E98
RGBrgb(33, 62, 152)
HSLhsl(225, 64%, 36%)
HSVhsv(225, 78%, 60%)
CMYKcmyk(78.3%, 59.2%, 0%, 40.4%)
CIE-LABlab(29.50, 23.14, -52.33)
CIE-LCHlch(29.50, 57.22, 293.86°)
OKLaboklab(40.09% -0.0105 -0.1511)
OKLCHoklch(40.09% 0.151 266)
XYZxyz(8.0153, 6.0347, 30.4420)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213E98 #987B21
analogous
#217A98 #213E98 #402198
triadic
#213E98 #98213E #3E9821
tetradic
#213E98 #98217A #987B21 #219840
square
#213E98 #98217A #987B21 #219840
split-complementary
#213E98 #984021 #7A9821
monochromatic
#0B1533 #162966 #213E98 #2C53CA #5978DB

Accessibility & contrast

On white

9.51
#213E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#213E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213E98
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213E98#FFFFFF#000000##FFFFFF
##213E981.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #213e98;
/* rgb */ color: rgb(33, 62, 152);
/* oklch */ color: oklch(40.1% 0.151 266.0);
Tailwind
colors: {
  custom: {
    50: '#7072b7',
    500: '#213e98',
    950: '#000000',
  },
}
SCSS
$custom: #213e98;
$custom-light: #7072b7;
$custom-dark: #000000;
JSON
{
  "hex": "#213e98",
  "rgb": {
    "r": 33,
    "g": 62,
    "b": 152
  },
  "hsl": {
    "h": 225.378,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40085,
    "c": 0.15147,
    "h": 266
  },
  "luminance": 0.06036
}

Semantic roles & 50–950 ramp

primary
#213E98
secondary
#BFA556
accent
#BF40E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #213E98

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

Preview Lab → · Contrast checker → · Palette generator →

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