#213B8B#213B8B

#213B8B is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.3% C 0.137 H 266.3°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#213B8B
RGBrgb(33, 59, 139)
HSLhsl(225, 62%, 34%)
HSVhsv(225, 76%, 55%)
CMYKcmyk(76.3%, 57.6%, 0%, 45.5%)
CIE-LABlab(27.61, 20.09, -47.41)
CIE-LCHlch(27.61, 51.49, 292.96°)
OKLaboklab(38.34% -0.0089 -0.1367)
OKLCHoklch(38.34% 0.137 266.3)
XYZxyz(6.8497, 5.3146, 25.0859)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213B8B #8B7121
analogous
#21708B #213B8B #3C218B
triadic
#213B8B #8B213B #3B8B21
tetradic
#213B8B #8B2170 #8B7121 #218B3C
square
#213B8B #8B2170 #8B7121 #218B3C
split-complementary
#213B8B #8B3C21 #708B21
monochromatic
#0A1128 #15265A #213B8B #2D50BC #5171D6

Accessibility & contrast

On white

10.18
#213B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#213B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213B8B
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213B8B#FFFFFF#000000##FFFFFF
##213B8B1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #213b8b;
/* rgb */ color: rgb(33, 59, 139);
/* oklch */ color: oklch(38.3% 0.137 266.3);
Tailwind
colors: {
  custom: {
    50: '#6d70ae',
    500: '#213b8b',
    950: '#000000',
  },
}
SCSS
$custom: #213b8b;
$custom-light: #6d70ae;
$custom-dark: #000000;
JSON
{
  "hex": "#213b8b",
  "rgb": {
    "r": 33,
    "g": 59,
    "b": 139
  },
  "hsl": {
    "h": 225.283,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38338,
    "c": 0.137,
    "h": 266.3
  },
  "luminance": 0.05315
}

Semantic roles & 50–950 ramp

primary
#213B8B
secondary
#B99F4F
accent
#BD43E5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #213B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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