#212A70#212A70

#212A70 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.120 H 272.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#212A70
RGBrgb(33, 42, 112)
HSLhsl(233, 54%, 28%)
HSVhsv(233, 71%, 44%)
CMYKcmyk(70.5%, 62.5%, 0%, 56.1%)
CIE-LABlab(20.63, 21.36, -41.73)
CIE-LCHlch(20.63, 46.88, 297.10°)
OKLaboklab(32.42% 0.0047 -0.1202)
OKLCHoklch(32.42% 0.12 272.2)
XYZxyz(4.3788, 3.1487, 15.7031)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A70 #706721
analogous
#215170 #212A70 #3F2170
triadic
#212A70 #70212A #2A7021
tetradic
#212A70 #702151 #706721 #21703F
square
#212A70 #702151 #706721 #21703F
split-complementary
#212A70 #703F21 #517021
monochromatic
#070918 #131841 #212A70 #2F3C9F #4453C8

Accessibility & contrast

On white

12.89
#212A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#212A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A70
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A70#FFFFFF#000000##FFFFFF
##212A701.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212a70;
/* rgb */ color: rgb(33, 42, 112);
/* oklch */ color: oklch(32.4% 0.120 272.2);
Tailwind
colors: {
  custom: {
    50: '#67639a',
    500: '#212a70',
    950: '#000000',
  },
}
SCSS
$custom: #212a70;
$custom-light: #67639a;
$custom-dark: #000000;
JSON
{
  "hex": "#212a70",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 112
  },
  "hsl": {
    "h": 233.165,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32418,
    "c": 0.12033,
    "h": 272.2
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#212A70
secondary
#A49949
accent
#CD4ADE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212A70

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

Preview Lab → · Contrast checker → · Palette generator →

#212A70 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva