#213A98#213A98

#213A98 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.157 H 267.2°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#213A98
RGBrgb(33, 58, 152)
HSLhsl(227, 64%, 36%)
HSVhsv(227, 78%, 60%)
CMYKcmyk(78.3%, 61.8%, 0%, 40.4%)
CIE-LABlab(28.42, 25.86, -54.09)
CIE-LCHlch(28.42, 59.96, 295.56°)
OKLaboklab(39.28% -0.0077 -0.1563)
OKLCHoklch(39.28% 0.157 267.2)
XYZxyz(7.8058, 5.6156, 30.3722)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213A98 #987F21
analogous
#217698 #213A98 #442198
triadic
#213A98 #98213A #3A9821
tetradic
#213A98 #982176 #987F21 #219844
square
#213A98 #982176 #987F21 #219844
split-complementary
#213A98 #984421 #769821
monochromatic
#0B1433 #162766 #213A98 #2C4DCA #5974DB

Accessibility & contrast

On white

9.89
#213A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#213A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213A98
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213A98#FFFFFF#000000##FFFFFF
##213A981.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #213a98;
/* rgb */ color: rgb(33, 58, 152);
/* oklch */ color: oklch(39.3% 0.157 267.2);
Tailwind
colors: {
  custom: {
    50: '#706fb7',
    500: '#213a98',
    950: '#000000',
  },
}
SCSS
$custom: #213a98;
$custom-light: #706fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#213a98",
  "rgb": {
    "r": 33,
    "g": 58,
    "b": 152
  },
  "hsl": {
    "h": 227.395,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3928,
    "c": 0.15652,
    "h": 267.2
  },
  "luminance": 0.05616
}

Semantic roles & 50–950 ramp

primary
#213A98
secondary
#BFA956
accent
#C440E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213A98

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

Preview Lab → · Contrast checker → · Palette generator →

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