#213B9C#213B9C

#213B9C is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.161 H 267.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#213B9C
RGBrgb(33, 59, 156)
HSLhsl(227, 65%, 37%)
HSVhsv(227, 79%, 61%)
CMYKcmyk(78.8%, 62.2%, 0%, 38.8%)
CIE-LABlab(29.03, 26.74, -55.53)
CIE-LCHlch(29.03, 61.63, 295.71°)
OKLaboklab(39.84% -0.0084 -0.1605)
OKLCHoklch(39.84% 0.161 267)
XYZxyz(8.1898, 5.8506, 32.1437)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213B9C #9C8221
analogous
#21799C #213B9C #45219C
triadic
#213B9C #9C213B #3B9C21
tetradic
#213B9C #9C2179 #9C8221 #219C45
square
#213B9C #9C2179 #9C8221 #219C45
split-complementary
#213B9C #9C4521 #799C21
monochromatic
#0C1537 #162869 #213B9C #2C4ECF #5B76DC

Accessibility & contrast

On white

9.68
#213B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#213B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213B9C
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213B9C#FFFFFF#000000##FFFFFF
##213B9C1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #213b9c;
/* rgb */ color: rgb(33, 59, 156);
/* oklch */ color: oklch(39.8% 0.161 267.0);
Tailwind
colors: {
  custom: {
    50: '#7170ba',
    500: '#213b9c',
    950: '#000000',
  },
}
SCSS
$custom: #213b9c;
$custom-light: #7170ba;
$custom-dark: #000000;
JSON
{
  "hex": "#213b9c",
  "rgb": {
    "r": 33,
    "g": 59,
    "b": 156
  },
  "hsl": {
    "h": 227.317,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39842,
    "c": 0.16076,
    "h": 267
  },
  "luminance": 0.05852
}

Semantic roles & 50–950 ramp

primary
#213B9C
secondary
#C1AB58
accent
#C440E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #213B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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