#212170#212170

#212170 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.132 H 275.3°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#212170
RGBrgb(33, 33, 112)
HSLhsl(240, 54%, 28%)
HSVhsv(240, 71%, 44%)
CMYKcmyk(70.5%, 70.5%, 0%, 56.1%)
CIE-LABlab(18.28, 27.53, -45.57)
CIE-LCHlch(18.28, 53.24, 301.13°)
OKLaboklab(30.7% 0.0122 -0.1316)
OKLCHoklch(30.7% 0.132 275.3)
XYZxyz(4.0947, 2.5805, 15.6084)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212170 #707021
analogous
#214870 #212170 #482170
triadic
#212170 #702121 #217021
tetradic
#212170 #702148 #707021 #217048
square
#212170 #702148 #707021 #217048
split-complementary
#212170 #704821 #487021
monochromatic
#070718 #131341 #212170 #2F2F9F #4444C8

Accessibility & contrast

On white

13.85
#212170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#212170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212170
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212170#FFFFFF#000000##FFFFFF
##2121701.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #212170;
/* rgb */ color: rgb(33, 33, 112);
/* oklch */ color: oklch(30.7% 0.132 275.3);
Tailwind
colors: {
  custom: {
    50: '#685c9a',
    500: '#212170',
    950: '#000000',
  },
}
SCSS
$custom: #212170;
$custom-light: #685c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#212170",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 240,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30695,
    "c": 0.13215,
    "h": 275.3
  },
  "luminance": 0.02581
}

Semantic roles & 50–950 ramp

primary
#212170
secondary
#A4A449
accent
#DE4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212170

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

Preview Lab → · Contrast checker → · Palette generator →

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