#212A83#212A83

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

Color values

HEX#212A83
RGBrgb(33, 42, 131)
HSLhsl(234, 60%, 32%)
HSVhsv(234, 75%, 51%)
CMYKcmyk(74.8%, 67.9%, 0%, 48.6%)
CIE-LABlab(22.36, 28.62, -50.99)
CIE-LCHlch(22.36, 58.47, 299.31°)
OKLaboklab(34.23% 0.0038 -0.1474)
OKLCHoklch(34.23% 0.147 271.5)
XYZxyz(5.5505, 3.6174, 21.8740)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A83 #837A21
analogous
#215B83 #212A83 #492183
triadic
#212A83 #83212A #2A8321
tetradic
#212A83 #83215B #837A21 #218349
square
#212A83 #83215B #837A21 #218349
split-complementary
#212A83 #834921 #5B8321
monochromatic
#080B21 #151A52 #212A83 #2D3AB4 #4C59D2

Accessibility & contrast

On white

12.18
#212A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212A83
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A83#FFFFFF#000000##FFFFFF
##212A831.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212a83;
/* rgb */ color: rgb(33, 42, 131);
/* oklch */ color: oklch(34.2% 0.147 271.5);
Tailwind
colors: {
  custom: {
    50: '#6c63a8',
    500: '#212a83',
    950: '#000000',
  },
}
SCSS
$custom: #212a83;
$custom-light: #6c63a8;
$custom-dark: #000000;
JSON
{
  "hex": "#212a83",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 131
  },
  "hsl": {
    "h": 234.49,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3423,
    "c": 0.14745,
    "h": 271.5
  },
  "luminance": 0.03618
}

Semantic roles & 50–950 ramp

primary
#212A83
secondary
#B5AB4B
accent
#D445E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212A83

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

Preview Lab → · Contrast checker → · Palette generator →

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