#213F9B#213F9B

#213F9B is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.154 H 265.9°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#213F9B
RGBrgb(33, 63, 155)
HSLhsl(225, 65%, 37%)
HSVhsv(225, 79%, 61%)
CMYKcmyk(78.7%, 59.4%, 0%, 39.2%)
CIE-LABlab(30.02, 23.64, -53.31)
CIE-LCHlch(30.02, 58.31, 293.91°)
OKLaboklab(40.55% -0.0111 -0.154)
OKLCHoklch(40.55% 0.154 265.9)
XYZxyz(8.3190, 6.2440, 31.7708)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213F9B #9B7D21
analogous
#217C9B #213F9B #40219B
triadic
#213F9B #9B213F #3F9B21
tetradic
#213F9B #9B217C #9B7D21 #219B40
square
#213F9B #9B217C #9B7D21 #219B40
split-complementary
#213F9B #9B4021 #7C9B21
monochromatic
#0C1636 #162A69 #213F9B #2C54CD #5A7ADC

Accessibility & contrast

On white

9.34
#213F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#213F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213F9B
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213F9B#FFFFFF#000000##FFFFFF
##213F9B1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #213f9b;
/* rgb */ color: rgb(33, 63, 155);
/* oklch */ color: oklch(40.6% 0.154 265.9);
Tailwind
colors: {
  custom: {
    50: '#7073b9',
    500: '#213f9b',
    950: '#000000',
  },
}
SCSS
$custom: #213f9b;
$custom-light: #7073b9;
$custom-dark: #000000;
JSON
{
  "hex": "#213f9b",
  "rgb": {
    "r": 33,
    "g": 63,
    "b": 155
  },
  "hsl": {
    "h": 225.246,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40551,
    "c": 0.15437,
    "h": 265.9
  },
  "luminance": 0.06245
}

Semantic roles & 50–950 ramp

primary
#213F9B
secondary
#C0A658
accent
#BF40E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #213F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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