#213A97#213A97

#213A97 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.2% C 0.155 H 267.1°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#213A97
RGBrgb(33, 58, 151)
HSLhsl(227, 64%, 36%)
HSVhsv(227, 78%, 59%)
CMYKcmyk(78.1%, 61.6%, 0%, 40.8%)
CIE-LABlab(28.33, 25.48, -53.62)
CIE-LCHlch(28.33, 59.36, 295.41°)
OKLaboklab(39.19% -0.0078 -0.1549)
OKLCHoklch(39.19% 0.155 267.1)
XYZxyz(7.7242, 5.5829, 29.9427)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213A97 #977E21
analogous
#217597 #213A97 #432197
triadic
#213A97 #97213A #3A9721
tetradic
#213A97 #972175 #977E21 #219743
square
#213A97 #972175 #977E21 #219743
split-complementary
#213A97 #974321 #759721
monochromatic
#0B1333 #162765 #213A97 #2C4DC9 #5874DA

Accessibility & contrast

On white

9.92
#213A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#213A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213A97
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213A97#FFFFFF#000000##FFFFFF
##213A971.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #213a97;
/* rgb */ color: rgb(33, 58, 151);
/* oklch */ color: oklch(39.2% 0.155 267.1);
Tailwind
colors: {
  custom: {
    50: '#706fb6',
    500: '#213a97',
    950: '#000000',
  },
}
SCSS
$custom: #213a97;
$custom-light: #706fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#213a97",
  "rgb": {
    "r": 33,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 227.288,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39189,
    "c": 0.15514,
    "h": 267.1
  },
  "luminance": 0.05584
}

Semantic roles & 50–950 ramp

primary
#213A97
secondary
#BEA855
accent
#C441E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213A97

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

Preview Lab → · Contrast checker → · Palette generator →

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