#212C87#212C87

#212C87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.150 H 270.8°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#212C87
RGBrgb(33, 44, 135)
HSLhsl(234, 61%, 33%)
HSVhsv(234, 76%, 53%)
CMYKcmyk(75.6%, 67.4%, 0%, 47.1%)
CIE-LABlab(23.25, 28.80, -52.05)
CIE-LCHlch(23.25, 59.48, 298.95°)
OKLaboklab(34.99% 0.0021 -0.1505)
OKLCHoklch(34.99% 0.151 270.8)
XYZxyz(5.8996, 3.8734, 23.3537)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C87 #877C21
analogous
#215F87 #212C87 #492187
triadic
#212C87 #87212C #2C8721
tetradic
#212C87 #87215F #877C21 #218749
square
#212C87 #87215F #877C21 #218749
split-complementary
#212C87 #874921 #5F8721
monochromatic
#090C25 #151C56 #212C87 #2D3CB8 #4F5DD4

Accessibility & contrast

On white

11.83
#212C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#212C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C87
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C87#FFFFFF#000000##FFFFFF
##212C871.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212c87;
/* rgb */ color: rgb(33, 44, 135);
/* oklch */ color: oklch(35.0% 0.150 270.8);
Tailwind
colors: {
  custom: {
    50: '#6d65ab',
    500: '#212c87',
    950: '#000000',
  },
}
SCSS
$custom: #212c87;
$custom-light: #6d65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#212c87",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 233.529,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34992,
    "c": 0.1505,
    "h": 270.8
  },
  "luminance": 0.03874
}

Semantic roles & 50–950 ramp

primary
#212C87
secondary
#B7AC4D
accent
#D344E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #212C87

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

Preview Lab → · Contrast checker → · Palette generator →

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