#212C80#212C80

#212C80 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.141 H 271.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#212C80
RGBrgb(33, 44, 128)
HSLhsl(233, 59%, 32%)
HSVhsv(233, 74%, 50%)
CMYKcmyk(74.2%, 65.6%, 0%, 49.8%)
CIE-LABlab(22.59, 26.13, -48.72)
CIE-LCHlch(22.59, 55.29, 298.21°)
OKLaboklab(34.31% 0.0026 -0.1408)
OKLCHoklch(34.31% 0.141 271)
XYZxyz(5.4228, 3.6827, 20.8429)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C80 #807521
analogous
#215C80 #212C80 #462180
triadic
#212C80 #80212C #2C8021
tetradic
#212C80 #80215C #807521 #218046
square
#212C80 #80215C #807521 #218046
split-complementary
#212C80 #804621 #5C8021
monochromatic
#080B1F #141B4F #212C80 #2E3DB1 #4B5AD1

Accessibility & contrast

On white

12.09
#212C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C80
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C80#FFFFFF#000000##FFFFFF
##212C801.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212c80;
/* rgb */ color: rgb(33, 44, 128);
/* oklch */ color: oklch(34.3% 0.141 271.0);
Tailwind
colors: {
  custom: {
    50: '#6b65a6',
    500: '#212c80',
    950: '#000000',
  },
}
SCSS
$custom: #212c80;
$custom-light: #6b65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#212c80",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 128
  },
  "hsl": {
    "h": 233.053,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34311,
    "c": 0.14078,
    "h": 271
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#212C80
secondary
#B3A74A
accent
#D046E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #212C80

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

Preview Lab → · Contrast checker → · Palette generator →

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