#212A89#212A89

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

Color values

HEX#212A89
RGBrgb(33, 42, 137)
HSLhsl(235, 61%, 33%)
HSVhsv(235, 76%, 54%)
CMYKcmyk(75.9%, 69.3%, 0%, 46.3%)
CIE-LABlab(22.95, 30.87, -53.79)
CIE-LCHlch(22.95, 62.02, 299.85°)
OKLaboklab(34.83% 0.0032 -0.1556)
OKLCHoklch(34.83% 0.156 271.2)
XYZxyz(5.9690, 3.7848, 24.0780)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A89 #898021
analogous
#215E89 #212A89 #4C2189
triadic
#212A89 #89212A #2A8921
tetradic
#212A89 #89215E #898021 #21894C
square
#212A89 #89215E #898021 #21894C
split-complementary
#212A89 #894C21 #5E8921
monochromatic
#090C26 #151B58 #212A89 #2D39BA #505BD5

Accessibility & contrast

On white

11.95
#212A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#212A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A89
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A89#FFFFFF#000000##FFFFFF
##212A891.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212a89;
/* rgb */ color: rgb(33, 42, 137);
/* oklch */ color: oklch(34.8% 0.156 271.2);
Tailwind
colors: {
  custom: {
    50: '#6e64ac',
    500: '#212a89',
    950: '#000000',
  },
}
SCSS
$custom: #212a89;
$custom-light: #6e64ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212a89",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 137
  },
  "hsl": {
    "h": 234.808,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34832,
    "c": 0.15563,
    "h": 271.2
  },
  "luminance": 0.03785
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212A89

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

Preview Lab → · Contrast checker → · Palette generator →

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