#212C7B#212C7B

#212C7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.134 H 271.2°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#212C7B
RGBrgb(33, 44, 123)
HSLhsl(233, 58%, 31%)
HSVhsv(233, 73%, 48%)
CMYKcmyk(73.2%, 64.2%, 0%, 51.8%)
CIE-LABlab(22.14, 24.22, -46.30)
CIE-LCHlch(22.14, 52.25, 297.61°)
OKLaboklab(33.84% 0.0028 -0.1336)
OKLCHoklch(33.84% 0.134 271.2)
XYZxyz(5.1018, 3.5543, 19.1522)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C7B #7B7021
analogous
#21597B #212C7B #43217B
triadic
#212C7B #7B212C #2C7B21
tetradic
#212C7B #7B2159 #7B7021 #217B43
square
#212C7B #7B2159 #7B7021 #217B43
split-complementary
#212C7B #7B4321 #597B21
monochromatic
#07091A #141B4B #212C7B #2E3DAB #4859CE

Accessibility & contrast

On white

12.27
#212C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#212C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C7B
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C7B#FFFFFF#000000##FFFFFF
##212C7B1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212c7b;
/* rgb */ color: rgb(33, 44, 123);
/* oklch */ color: oklch(33.8% 0.134 271.2);
Tailwind
colors: {
  custom: {
    50: '#6a65a2',
    500: '#212c7b',
    950: '#000000',
  },
}
SCSS
$custom: #212c7b;
$custom-light: #6a65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#212c7b",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 232.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33836,
    "c": 0.13368,
    "h": 271.2
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#212C7B
secondary
#AEA24A
accent
#CE47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #212C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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