#212A82#212A82

#212A82 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.146 H 271.5°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#212A82
RGBrgb(33, 42, 130)
HSLhsl(234, 60%, 32%)
HSVhsv(234, 75%, 51%)
CMYKcmyk(74.6%, 67.7%, 0%, 49%)
CIE-LABlab(22.27, 28.25, -50.52)
CIE-LCHlch(22.27, 57.88, 299.21°)
OKLaboklab(34.13% 0.0038 -0.146)
OKLCHoklch(34.13% 0.146 271.5)
XYZxyz(5.4831, 3.5904, 21.5188)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A82 #827921
analogous
#215B82 #212A82 #492182
triadic
#212A82 #82212A #2A8221
tetradic
#212A82 #82215B #827921 #218249
square
#212A82 #82215B #827921 #218249
split-complementary
#212A82 #824921 #5B8221
monochromatic
#080A20 #151A51 #212A82 #2D3AB3 #4C58D2

Accessibility & contrast

On white

12.22
#212A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A82
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A82#FFFFFF#000000##FFFFFF
##212A821.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212a82;
/* rgb */ color: rgb(33, 42, 130);
/* oklch */ color: oklch(34.1% 0.146 271.5);
Tailwind
colors: {
  custom: {
    50: '#6c63a7',
    500: '#212a82',
    950: '#000000',
  },
}
SCSS
$custom: #212a82;
$custom-light: #6c63a7;
$custom-dark: #000000;
JSON
{
  "hex": "#212a82",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 234.433,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3413,
    "c": 0.14607,
    "h": 271.5
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#212A82
secondary
#B4AB4A
accent
#D445E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #212A82

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

Preview Lab → · Contrast checker → · Palette generator →

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