#212C82#212C82

#212C82 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.144 H 271.0°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#212C82
RGBrgb(33, 44, 130)
HSLhsl(233, 60%, 32%)
HSVhsv(233, 75%, 51%)
CMYKcmyk(74.6%, 66.2%, 0%, 49%)
CIE-LABlab(22.78, 26.90, -49.68)
CIE-LCHlch(22.78, 56.50, 298.43°)
OKLaboklab(34.5% 0.0024 -0.1436)
OKLCHoklch(34.5% 0.144 271)
XYZxyz(5.5558, 3.7358, 21.5431)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C82 #827721
analogous
#215D82 #212C82 #472182
triadic
#212C82 #82212C #2C8221
tetradic
#212C82 #82215D #827721 #218247
square
#212C82 #82215D #827721 #218247
split-complementary
#212C82 #824721 #5D8221
monochromatic
#080B20 #151B51 #212C82 #2D3DB3 #4C5BD2

Accessibility & contrast

On white

12.02
#212C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#212C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C82
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C82#FFFFFF#000000##FFFFFF
##212C821.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212c82;
/* rgb */ color: rgb(33, 44, 130);
/* oklch */ color: oklch(34.5% 0.144 271.0);
Tailwind
colors: {
  custom: {
    50: '#6c65a7',
    500: '#212c82',
    950: '#000000',
  },
}
SCSS
$custom: #212c82;
$custom-light: #6c65a7;
$custom-dark: #000000;
JSON
{
  "hex": "#212c82",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 130
  },
  "hsl": {
    "h": 233.196,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34504,
    "c": 0.14358,
    "h": 271
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#212C82
secondary
#B4A84A
accent
#D145E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #212C82

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

Preview Lab → · Contrast checker → · Palette generator →

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