#212C99#212C99

#212C99 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.175 H 270.1°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#212C99
RGBrgb(33, 44, 153)
HSLhsl(235, 65%, 36%)
HSVhsv(235, 78%, 60%)
CMYKcmyk(78.4%, 71.2%, 0%, 40%)
CIE-LABlab(25.03, 35.46, -60.27)
CIE-LCHlch(25.03, 69.93, 300.47°)
OKLaboklab(36.82% 0.0004 -0.1745)
OKLCHoklch(36.82% 0.175 270.1)
XYZxyz(7.2757, 4.4238, 30.6012)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C99 #998E21
analogous
#216899 #212C99 #522199
triadic
#212C99 #99212C #2C9921
tetradic
#212C99 #992168 #998E21 #219952
square
#212C99 #992168 #998E21 #219952
split-complementary
#212C99 #995221 #689921
monochromatic
#0B0F34 #161E67 #212C99 #2C3ACB #5965DB

Accessibility & contrast

On white

11.14
#212C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#212C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C99
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C99#FFFFFF#000000##FFFFFF
##212C991.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212c99;
/* rgb */ color: rgb(33, 44, 153);
/* oklch */ color: oklch(36.8% 0.175 270.1);
Tailwind
colors: {
  custom: {
    50: '#7266b8',
    500: '#212c99',
    950: '#000000',
  },
}
SCSS
$custom: #212c99;
$custom-light: #7266b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212c99",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 234.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36822,
    "c": 0.17451,
    "h": 270.1
  },
  "luminance": 0.04425
}

Semantic roles & 50–950 ramp

primary
#212C99
secondary
#BFB656
accent
#D840E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212C99

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

Preview Lab → · Contrast checker → · Palette generator →

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