#212D71#212D71

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

Color values

HEX#212D71
RGBrgb(33, 45, 113)
HSLhsl(231, 55%, 29%)
HSVhsv(231, 71%, 44%)
CMYKcmyk(70.8%, 60.2%, 0%, 55.7%)
CIE-LABlab(21.55, 19.63, -40.88)
CIE-LCHlch(21.55, 45.35, 295.66°)
OKLaboklab(33.13% 0.002 -0.1177)
OKLCHoklch(33.13% 0.118 270.9)
XYZxyz(4.5452, 3.3919, 16.0348)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D71 #716521
analogous
#215571 #212D71 #3D2171
triadic
#212D71 #71212D #2D7121
tetradic
#212D71 #712155 #716521 #21713D
square
#212D71 #712155 #716521 #21713D
split-complementary
#212D71 #713D21 #557121
monochromatic
#070918 #131A42 #212D71 #2F40A0 #4458C8

Accessibility & contrast

On white

12.51
#212D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#212D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D71
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D71#FFFFFF#000000##FFFFFF
##212D711.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212d71;
/* rgb */ color: rgb(33, 45, 113);
/* oklch */ color: oklch(33.1% 0.118 270.9);
Tailwind
colors: {
  custom: {
    50: '#67659a',
    500: '#212d71',
    950: '#000000',
  },
}
SCSS
$custom: #212d71;
$custom-light: #67659a;
$custom-dark: #000000;
JSON
{
  "hex": "#212d71",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 231,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33129,
    "c": 0.11772,
    "h": 270.9
  },
  "luminance": 0.03392
}

Semantic roles & 50–950 ramp

primary
#212D71
secondary
#A59749
accent
#C84ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #212D71

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

Preview Lab → · Contrast checker → · Palette generator →

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