#212D70#212D70

#212D70 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.0% C 0.116 H 270.9°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#212D70
RGBrgb(33, 45, 112)
HSLhsl(231, 54%, 28%)
HSVhsv(231, 71%, 44%)
CMYKcmyk(70.5%, 59.8%, 0%, 56.1%)
CIE-LABlab(21.47, 19.24, -40.37)
CIE-LCHlch(21.47, 44.72, 295.49°)
OKLaboklab(33.04% 0.0019 -0.1162)
OKLCHoklch(33.04% 0.116 270.9)
XYZxyz(4.4892, 3.3695, 15.7399)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D70 #706421
analogous
#215470 #212D70 #3C2170
triadic
#212D70 #70212D #2D7021
tetradic
#212D70 #702154 #706421 #21703C
square
#212D70 #702154 #706421 #21703C
split-complementary
#212D70 #703C21 #547021
monochromatic
#070918 #131A41 #212D70 #2F409F #4458C8

Accessibility & contrast

On white

12.54
#212D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#212D70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D70
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D70#FFFFFF#000000##FFFFFF
##212D701.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003772
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#003D49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212d70;
/* rgb */ color: rgb(33, 45, 112);
/* oklch */ color: oklch(33.0% 0.116 270.9);
Tailwind
colors: {
  custom: {
    50: '#67659a',
    500: '#212d70',
    950: '#000000',
  },
}
SCSS
$custom: #212d70;
$custom-light: #67659a;
$custom-dark: #000000;
JSON
{
  "hex": "#212d70",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 112
  },
  "hsl": {
    "h": 230.886,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33041,
    "c": 0.11623,
    "h": 270.9
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#212D70
secondary
#A49649
accent
#C74ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #212D70

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

Preview Lab → · Contrast checker → · Palette generator →

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