#212B77#212B77

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

Color values

HEX#212B77
RGBrgb(33, 43, 119)
HSLhsl(233, 57%, 30%)
HSVhsv(233, 72%, 47%)
CMYKcmyk(72.3%, 63.9%, 0%, 53.3%)
CIE-LABlab(21.51, 23.37, -44.78)
CIE-LCHlch(21.51, 50.51, 297.56°)
OKLaboklab(33.26% 0.0037 -0.1292)
OKLCHoklch(33.26% 0.129 271.6)
XYZxyz(4.8197, 3.3825, 17.8481)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B77 #776D21
analogous
#215677 #212B77 #422177
triadic
#212B77 #77212B #2B7721
tetradic
#212B77 #772156 #776D21 #217742
square
#212B77 #772156 #776D21 #217742
split-complementary
#212B77 #774221 #567721
monochromatic
#070918 #141A47 #212B77 #2E3CA7 #4756CC

Accessibility & contrast

On white

12.53
#212B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212B77
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B77#FFFFFF#000000##FFFFFF
##212B771.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212b77;
/* rgb */ color: rgb(33, 43, 119);
/* oklch */ color: oklch(33.3% 0.129 271.6);
Tailwind
colors: {
  custom: {
    50: '#69649f',
    500: '#212b77',
    950: '#000000',
  },
}
SCSS
$custom: #212b77;
$custom-light: #69649f;
$custom-dark: #000000;
JSON
{
  "hex": "#212b77",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 119
  },
  "hsl": {
    "h": 233.023,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33264,
    "c": 0.12923,
    "h": 271.6
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#212B77
secondary
#AA9F4A
accent
#CE48E0
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212B77

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

Preview Lab → · Contrast checker → · Palette generator →

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