#212B82#212B82

#212B82 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.145 H 271.2°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#212B82
RGBrgb(33, 43, 130)
HSLhsl(234, 60%, 32%)
HSVhsv(234, 75%, 51%)
CMYKcmyk(74.6%, 66.9%, 0%, 49%)
CIE-LABlab(22.52, 27.58, -50.10)
CIE-LCHlch(22.52, 57.19, 298.83°)
OKLaboklab(34.32% 0.0031 -0.1448)
OKLCHoklch(34.32% 0.145 271.2)
XYZxyz(5.5190, 3.6622, 21.5308)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B82 #827821
analogous
#215C82 #212B82 #472182
triadic
#212B82 #82212B #2B8221
tetradic
#212B82 #82215C #827821 #218247
square
#212B82 #82215C #827821 #218247
split-complementary
#212B82 #824721 #5C8221
monochromatic
#080B20 #151B51 #212B82 #2D3BB3 #4C5AD2

Accessibility & contrast

On white

12.12
#212B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B82
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B82#FFFFFF#000000##FFFFFF
##212B821.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212b82;
/* rgb */ color: rgb(33, 43, 130);
/* oklch */ color: oklch(34.3% 0.145 271.2);
Tailwind
colors: {
  custom: {
    50: '#6c64a7',
    500: '#212b82',
    950: '#000000',
  },
}
SCSS
$custom: #212b82;
$custom-light: #6c64a7;
$custom-dark: #000000;
JSON
{
  "hex": "#212b82",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 130
  },
  "hsl": {
    "h": 233.814,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34316,
    "c": 0.14483,
    "h": 271.2
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#212B82
secondary
#B4AA4A
accent
#D245E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #212B82

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

Preview Lab → · Contrast checker → · Palette generator →

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