#213B9B#213B9B

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

Color values

HEX#213B9B
RGBrgb(33, 59, 155)
HSLhsl(227, 65%, 37%)
HSVhsv(227, 79%, 61%)
CMYKcmyk(78.7%, 61.9%, 0%, 39.2%)
CIE-LABlab(28.95, 26.35, -55.06)
CIE-LCHlch(28.95, 61.04, 295.57°)
OKLaboklab(39.75% -0.0084 -0.1592)
OKLCHoklch(39.75% 0.159 267)
XYZxyz(8.1055, 5.8169, 31.6996)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213B9B #9B8121
analogous
#21789B #213B9B #44219B
triadic
#213B9B #9B213B #3B9B21
tetradic
#213B9B #9B2178 #9B8121 #219B44
square
#213B9B #9B2178 #9B8121 #219B44
split-complementary
#213B9B #9B4421 #789B21
monochromatic
#0C1536 #162869 #213B9B #2C4ECD #5A76DC

Accessibility & contrast

On white

9.71
#213B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#213B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213B9B
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213B9B#FFFFFF#000000##FFFFFF
##213B9B1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #213b9b;
/* rgb */ color: rgb(33, 59, 155);
/* oklch */ color: oklch(39.8% 0.159 267.0);
Tailwind
colors: {
  custom: {
    50: '#7170b9',
    500: '#213b9b',
    950: '#000000',
  },
}
SCSS
$custom: #213b9b;
$custom-light: #7170b9;
$custom-dark: #000000;
JSON
{
  "hex": "#213b9b",
  "rgb": {
    "r": 33,
    "g": 59,
    "b": 155
  },
  "hsl": {
    "h": 227.213,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39751,
    "c": 0.15939,
    "h": 267
  },
  "luminance": 0.05818
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #213B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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