#212A88#212A88

#212A88 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.154 H 271.2°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#212A88
RGBrgb(33, 42, 136)
HSLhsl(235, 61%, 33%)
HSVhsv(235, 76%, 53%)
CMYKcmyk(75.7%, 69.1%, 0%, 46.7%)
CIE-LABlab(22.85, 30.50, -53.33)
CIE-LCHlch(22.85, 61.43, 299.76°)
OKLaboklab(34.73% 0.0033 -0.1542)
OKLCHoklch(34.73% 0.154 271.2)
XYZxyz(5.8976, 3.7562, 23.7020)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A88 #887F21
analogous
#215D88 #212A88 #4B2188
triadic
#212A88 #88212A #2A8821
tetradic
#212A88 #88215D #887F21 #21884B
square
#212A88 #88215D #887F21 #21884B
split-complementary
#212A88 #884B21 #5D8821
monochromatic
#090C25 #151B57 #212A88 #2D39B9 #4F5BD4

Accessibility & contrast

On white

11.99
#212A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212A88
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A88#FFFFFF#000000##FFFFFF
##212A881.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212a88;
/* rgb */ color: rgb(33, 42, 136);
/* oklch */ color: oklch(34.7% 0.154 271.2);
Tailwind
colors: {
  custom: {
    50: '#6d64ac',
    500: '#212a88',
    950: '#000000',
  },
}
SCSS
$custom: #212a88;
$custom-light: #6d64ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212a88",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 234.757,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3473,
    "c": 0.15429,
    "h": 271.2
  },
  "luminance": 0.03757
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212A88

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

Preview Lab → · Contrast checker → · Palette generator →

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