#212A87#212A87

#212A87 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.153 H 271.3°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#212A87
RGBrgb(33, 42, 135)
HSLhsl(235, 61%, 33%)
HSVhsv(235, 76%, 53%)
CMYKcmyk(75.6%, 68.9%, 0%, 47.1%)
CIE-LABlab(22.75, 30.12, -52.87)
CIE-LCHlch(22.75, 60.85, 299.68°)
OKLaboklab(34.63% 0.0034 -0.1529)
OKLCHoklch(34.63% 0.153 271.3)
XYZxyz(5.8269, 3.7279, 23.3294)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A87 #877E21
analogous
#215D87 #212A87 #4B2187
triadic
#212A87 #87212A #2A8721
tetradic
#212A87 #87215D #877E21 #21874B
square
#212A87 #87215D #877E21 #21874B
split-complementary
#212A87 #874B21 #5D8721
monochromatic
#090B25 #151B56 #212A87 #2D39B8 #4F5AD4

Accessibility & contrast

On white

12.03
#212A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212A87
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A87#FFFFFF#000000##FFFFFF
##212A871.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212a87;
/* rgb */ color: rgb(33, 42, 135);
/* oklch */ color: oklch(34.6% 0.153 271.3);
Tailwind
colors: {
  custom: {
    50: '#6d64ab',
    500: '#212a87',
    950: '#000000',
  },
}
SCSS
$custom: #212a87;
$custom-light: #6d64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#212a87",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 234.706,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34629,
    "c": 0.15293,
    "h": 271.3
  },
  "luminance": 0.03729
}

Semantic roles & 50–950 ramp

primary
#212A87
secondary
#B7AE4D
accent
#D644E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212A87

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

Preview Lab → · Contrast checker → · Palette generator →

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