#212E70#212E70

#212E70 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.3% C 0.115 H 270.5°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#212E70
RGBrgb(33, 46, 112)
HSLhsl(230, 54%, 28%)
HSVhsv(230, 71%, 44%)
CMYKcmyk(70.5%, 58.9%, 0%, 56.1%)
CIE-LABlab(21.75, 18.53, -39.91)
CIE-LCHlch(21.75, 44.00, 294.91°)
OKLaboklab(33.25% 0.001 -0.1148)
OKLCHoklch(33.25% 0.115 270.5)
XYZxyz(4.5278, 3.4468, 15.7528)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E70 #706321
analogous
#215570 #212E70 #3B2170
triadic
#212E70 #70212E #2E7021
tetradic
#212E70 #702155 #706321 #21703B
square
#212E70 #702155 #706321 #21703B
split-complementary
#212E70 #703B21 #557021
monochromatic
#070A18 #131B41 #212E70 #2F419F #4459C8

Accessibility & contrast

On white

12.43
#212E70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#212E70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E70
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E70#FFFFFF#000000##FFFFFF
##212E701.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003872
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212e70;
/* rgb */ color: rgb(33, 46, 112);
/* oklch */ color: oklch(33.3% 0.115 270.5);
Tailwind
colors: {
  custom: {
    50: '#67669a',
    500: '#212e70',
    950: '#000000',
  },
}
SCSS
$custom: #212e70;
$custom-light: #67669a;
$custom-dark: #000000;
JSON
{
  "hex": "#212e70",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 112
  },
  "hsl": {
    "h": 230.127,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33253,
    "c": 0.11484,
    "h": 270.5
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#212E70
secondary
#A49549
accent
#C64ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #212E70

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

Preview Lab → · Contrast checker → · Palette generator →

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