#212770#212770

#212770 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.124 H 273.4°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#212770
RGBrgb(33, 39, 112)
HSLhsl(235, 54%, 28%)
HSVhsv(235, 71%, 44%)
CMYKcmyk(70.5%, 65.2%, 0%, 56.1%)
CIE-LABlab(19.82, 23.45, -43.05)
CIE-LCHlch(19.82, 49.02, 298.58°)
OKLaboklab(31.82% 0.0073 -0.1242)
OKLCHoklch(31.82% 0.124 273.4)
XYZxyz(4.2764, 2.9438, 15.6689)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212770 #706A21
analogous
#214E70 #212770 #422170
triadic
#212770 #702127 #277021
tetradic
#212770 #70214E #706A21 #217042
square
#212770 #70214E #706A21 #217042
split-complementary
#212770 #704221 #4E7021
monochromatic
#070818 #131741 #212770 #2F379F #444EC8

Accessibility & contrast

On white

13.22
#212770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#212770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212770
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212770#FFFFFF#000000##FFFFFF
##2127701.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #212770;
/* rgb */ color: rgb(33, 39, 112);
/* oklch */ color: oklch(31.8% 0.124 273.4);
Tailwind
colors: {
  custom: {
    50: '#68619a',
    500: '#212770',
    950: '#000000',
  },
}
SCSS
$custom: #212770;
$custom-light: #68619a;
$custom-dark: #000000;
JSON
{
  "hex": "#212770",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 112
  },
  "hsl": {
    "h": 235.443,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31818,
    "c": 0.12438,
    "h": 273.4
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#212770
secondary
#A49D49
accent
#D34ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212770

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

Preview Lab → · Contrast checker → · Palette generator →

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