#212C75#212C75

#212C75 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.125 H 271.3°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#212C75
RGBrgb(33, 44, 117)
HSLhsl(232, 56%, 29%)
HSVhsv(232, 72%, 46%)
CMYKcmyk(71.8%, 62.4%, 0%, 54.1%)
CIE-LABlab(21.61, 21.90, -43.34)
CIE-LCHlch(21.61, 48.56, 296.80°)
OKLaboklab(33.28% 0.0029 -0.125)
OKLCHoklch(33.28% 0.125 271.3)
XYZxyz(4.7377, 3.4086, 17.2344)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C75 #756A21
analogous
#215675 #212C75 #402175
triadic
#212C75 #75212C #2C7521
tetradic
#212C75 #752156 #756A21 #217540
square
#212C75 #752156 #756A21 #217540
split-complementary
#212C75 #754021 #567521
monochromatic
#070918 #141A45 #212C75 #2E3EA5 #4657CB

Accessibility & contrast

On white

12.49
#212C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212C75
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C75#FFFFFF#000000##FFFFFF
##212C751.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003877
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212c75;
/* rgb */ color: rgb(33, 44, 117);
/* oklch */ color: oklch(33.3% 0.125 271.3);
Tailwind
colors: {
  custom: {
    50: '#68659d',
    500: '#212c75',
    950: '#000000',
  },
}
SCSS
$custom: #212c75;
$custom-light: #68659d;
$custom-dark: #000000;
JSON
{
  "hex": "#212c75",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 117
  },
  "hsl": {
    "h": 232.143,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33281,
    "c": 0.12499,
    "h": 271.3
  },
  "luminance": 0.03409
}

Semantic roles & 50–950 ramp

primary
#212C75
secondary
#A89C4A
accent
#CC49DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #212C75

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

Preview Lab → · Contrast checker → · Palette generator →

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