#212A99#212A99

#212A99 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.177 H 270.4°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#212A99
RGBrgb(33, 42, 153)
HSLhsl(236, 65%, 36%)
HSVhsv(236, 78%, 60%)
CMYKcmyk(78.4%, 72.5%, 0%, 40%)
CIE-LABlab(24.57, 36.71, -61.02)
CIE-LCHlch(24.57, 71.21, 301.03°)
OKLaboklab(36.49% 0.0013 -0.1767)
OKLCHoklch(36.49% 0.177 270.4)
XYZxyz(7.2030, 4.2784, 30.5770)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A99 #999021
analogous
#216699 #212A99 #542199
triadic
#212A99 #99212A #2A9921
tetradic
#212A99 #992166 #999021 #219954
square
#212A99 #992166 #999021 #219954
split-complementary
#212A99 #995421 #669921
monochromatic
#0B0E34 #161C67 #212A99 #2C38CB #5963DB

Accessibility & contrast

On white

11.32
#212A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#212A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A99
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A99#FFFFFF#000000##FFFFFF
##212A991.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212a99;
/* rgb */ color: rgb(33, 42, 153);
/* oklch */ color: oklch(36.5% 0.177 270.4);
Tailwind
colors: {
  custom: {
    50: '#7264b8',
    500: '#212a99',
    950: '#000000',
  },
}
SCSS
$custom: #212a99;
$custom-light: #7264b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212a99",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 235.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36494,
    "c": 0.1767,
    "h": 270.4
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#212A99
secondary
#BFB756
accent
#DB40E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212A99

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

Preview Lab → · Contrast checker → · Palette generator →

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