#213170#213170

#213170 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.9% C 0.111 H 269.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#213170
RGBrgb(33, 49, 112)
HSLhsl(228, 54%, 28%)
HSVhsv(228, 71%, 44%)
CMYKcmyk(70.5%, 56.3%, 0%, 56.1%)
CIE-LABlab(22.62, 16.41, -38.50)
CIE-LCHlch(22.62, 41.85, 293.08°)
OKLaboklab(33.9% -0.0019 -0.1107)
OKLCHoklch(33.9% 0.111 269)
XYZxyz(4.6491, 3.6894, 15.7932)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213170 #706021
analogous
#215870 #213170 #382170
triadic
#213170 #702131 #317021
tetradic
#213170 #702158 #706021 #217038
square
#213170 #702158 #706021 #217038
split-complementary
#213170 #703821 #587021
monochromatic
#070A18 #131C41 #213170 #2F469F #445EC8

Accessibility & contrast

On white

12.08
#213170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#213170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213170
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213170#FFFFFF#000000##FFFFFF
##2131701.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053A72
Deuteranopia (green-blind)
#00336F
Tritanopia (blue-blind)
#00404B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #213170;
/* rgb */ color: rgb(33, 49, 112);
/* oklch */ color: oklch(33.9% 0.111 269.0);
Tailwind
colors: {
  custom: {
    50: '#67689a',
    500: '#213170',
    950: '#000000',
  },
}
SCSS
$custom: #213170;
$custom-light: #67689a;
$custom-dark: #000000;
JSON
{
  "hex": "#213170",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 112
  },
  "hsl": {
    "h": 227.848,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33904,
    "c": 0.11069,
    "h": 269
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#213170
secondary
#A49149
accent
#C04ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #213170

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

Preview Lab → · Contrast checker → · Palette generator →

#213170 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva