#213F99#213F99

#213F99 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.152 H 265.8°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#213F99
RGBrgb(33, 63, 153)
HSLhsl(225, 65%, 36%)
HSVhsv(225, 78%, 60%)
CMYKcmyk(78.4%, 58.8%, 0%, 40%)
CIE-LABlab(29.86, 22.85, -52.36)
CIE-LCHlch(29.86, 57.13, 293.58°)
OKLaboklab(40.38% -0.0112 -0.1512)
OKLCHoklch(40.38% 0.152 265.8)
XYZxyz(8.1525, 6.1773, 30.8935)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213F99 #997B21
analogous
#217B99 #213F99 #3F2199
triadic
#213F99 #99213F #3F9921
tetradic
#213F99 #99217B #997B21 #21993F
square
#213F99 #99217B #997B21 #21993F
split-complementary
#213F99 #993F21 #7B9921
monochromatic
#0B1634 #162A67 #213F99 #2C54CB #597ADB

Accessibility & contrast

On white

9.39
#213F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#213F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213F99
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213F99#FFFFFF#000000##FFFFFF
##213F991.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #213f99;
/* rgb */ color: rgb(33, 63, 153);
/* oklch */ color: oklch(40.4% 0.152 265.8);
Tailwind
colors: {
  custom: {
    50: '#7073b8',
    500: '#213f99',
    950: '#000000',
  },
}
SCSS
$custom: #213f99;
$custom-light: #7073b8;
$custom-dark: #000000;
JSON
{
  "hex": "#213f99",
  "rgb": {
    "r": 33,
    "g": 63,
    "b": 153
  },
  "hsl": {
    "h": 225,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40377,
    "c": 0.15159,
    "h": 265.8
  },
  "luminance": 0.06178
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #213F99

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

Preview Lab → · Contrast checker → · Palette generator →

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