#213C9B#213C9B

#213C9B is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.158 H 266.7°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#213C9B
RGBrgb(33, 60, 155)
HSLhsl(227, 65%, 37%)
HSVhsv(227, 79%, 61%)
CMYKcmyk(78.7%, 61.3%, 0%, 39.2%)
CIE-LABlab(29.21, 25.67, -54.63)
CIE-LCHlch(29.21, 60.36, 295.17°)
OKLaboklab(39.95% -0.0091 -0.1579)
OKLCHoklch(39.95% 0.158 266.7)
XYZxyz(8.1574, 5.9207, 31.7169)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213C9B #9B8021
analogous
#21799B #213C9B #43219B
triadic
#213C9B #9B213C #3C9B21
tetradic
#213C9B #9B2179 #9B8021 #219B43
square
#213C9B #9B2179 #9B8021 #219B43
split-complementary
#213C9B #9B4321 #799B21
monochromatic
#0C1536 #162869 #213C9B #2C50CD #5A77DC

Accessibility & contrast

On white

9.61
#213C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#213C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213C9B
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213C9B#FFFFFF#000000##FFFFFF
##213C9B1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #213c9b;
/* rgb */ color: rgb(33, 60, 155);
/* oklch */ color: oklch(39.9% 0.158 266.7);
Tailwind
colors: {
  custom: {
    50: '#7171b9',
    500: '#213c9b',
    950: '#000000',
  },
}
SCSS
$custom: #213c9b;
$custom-light: #7171b9;
$custom-dark: #000000;
JSON
{
  "hex": "#213c9b",
  "rgb": {
    "r": 33,
    "g": 60,
    "b": 155
  },
  "hsl": {
    "h": 226.721,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39948,
    "c": 0.15814,
    "h": 266.7
  },
  "luminance": 0.05922
}

Semantic roles & 50–950 ramp

primary
#213C9B
secondary
#C0A958
accent
#C340E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #213C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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