#213B9F#213B9F

#213B9F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.165 H 267.1°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#213B9F
RGBrgb(33, 59, 159)
HSLhsl(228, 66%, 38%)
HSVhsv(228, 79%, 62%)
CMYKcmyk(79.2%, 62.9%, 0%, 37.6%)
CIE-LABlab(29.29, 27.89, -56.92)
CIE-LCHlch(29.29, 63.39, 296.11°)
OKLaboklab(40.12% -0.0084 -0.1646)
OKLCHoklch(40.12% 0.165 267.1)
XYZxyz(8.4470, 5.9535, 33.4981)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213B9F #9F8521
analogous
#217A9F #213B9F #46219F
triadic
#213B9F #9F213B #3B9F21
tetradic
#213B9F #9F217A #9F8521 #219F46
square
#213B9F #9F217A #9F8521 #219F46
split-complementary
#213B9F #9F4621 #7A9F21
monochromatic
#0C153A #16286C #213B9F #2C4ED2 #5D78DD

Accessibility & contrast

On white

9.59
#213B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#213B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213B9F
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213B9F#FFFFFF#000000##FFFFFF
##213B9F1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #213b9f;
/* rgb */ color: rgb(33, 59, 159);
/* oklch */ color: oklch(40.1% 0.165 267.1);
Tailwind
colors: {
  custom: {
    50: '#7270bc',
    500: '#213b9f',
    950: '#000000',
  },
}
SCSS
$custom: #213b9f;
$custom-light: #7270bc;
$custom-dark: #000000;
JSON
{
  "hex": "#213b9f",
  "rgb": {
    "r": 33,
    "g": 59,
    "b": 159
  },
  "hsl": {
    "h": 227.619,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40118,
    "c": 0.16483,
    "h": 267.1
  },
  "luminance": 0.05954
}

Semantic roles & 50–950 ramp

primary
#213B9F
secondary
#C2AC5A
accent
#C63FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #213B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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