#213A9A#213A9A

#213A9A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.159 H 267.2°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#213A9A
RGBrgb(33, 58, 154)
HSLhsl(228, 65%, 37%)
HSVhsv(228, 79%, 60%)
CMYKcmyk(78.6%, 62.3%, 0%, 39.6%)
CIE-LABlab(28.59, 26.64, -55.03)
CIE-LCHlch(28.59, 61.14, 295.83°)
OKLaboklab(39.46% -0.0077 -0.1591)
OKLCHoklch(39.46% 0.159 267.2)
XYZxyz(7.9710, 5.6816, 31.2422)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213A9A #9A8121
analogous
#21779A #213A9A #44219A
triadic
#213A9A #9A213A #3A9A21
tetradic
#213A9A #9A2177 #9A8121 #219A44
square
#213A9A #9A2177 #9A8121 #219A44
split-complementary
#213A9A #9A4421 #779A21
monochromatic
#0B1435 #162768 #213A9A #2C4DCC #5A75DC

Accessibility & contrast

On white

9.83
#213A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#213A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213A9A
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213A9A#FFFFFF#000000##FFFFFF
##213A9A1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#003E98
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #213a9a;
/* rgb */ color: rgb(33, 58, 154);
/* oklch */ color: oklch(39.5% 0.159 267.2);
Tailwind
colors: {
  custom: {
    50: '#706fb9',
    500: '#213a9a',
    950: '#000000',
  },
}
SCSS
$custom: #213a9a;
$custom-light: #706fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#213a9a",
  "rgb": {
    "r": 33,
    "g": 58,
    "b": 154
  },
  "hsl": {
    "h": 227.603,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39463,
    "c": 0.15927,
    "h": 267.2
  },
  "luminance": 0.05683
}

Semantic roles & 50–950 ramp

primary
#213A9A
secondary
#C0AA57
accent
#C540E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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