#212999#212999

#212999 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.178 H 270.6°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#212999
RGBrgb(33, 41, 153)
HSLhsl(236, 65%, 36%)
HSVhsv(236, 78%, 60%)
CMYKcmyk(78.4%, 73.2%, 0%, 40%)
CIE-LABlab(24.35, 37.33, -61.39)
CIE-LCHlch(24.35, 71.85, 301.30°)
OKLaboklab(36.34% 0.0018 -0.1777)
OKLCHoklch(36.34% 0.178 270.6)
XYZxyz(7.1679, 4.2083, 30.5653)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212999 #999121
analogous
#216599 #212999 #552199
triadic
#212999 #992129 #299921
tetradic
#212999 #992165 #999121 #219955
square
#212999 #992165 #999121 #219955
split-complementary
#212999 #995521 #659921
monochromatic
#0B0E34 #161C67 #212999 #2C36CB #5962DB

Accessibility & contrast

On white

11.40
#212999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#212999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212999
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212999#FFFFFF#000000##FFFFFF
##2129991.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.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: #212999;
/* rgb */ color: rgb(33, 41, 153);
/* oklch */ color: oklch(36.3% 0.178 270.6);
Tailwind
colors: {
  custom: {
    50: '#7264b8',
    500: '#212999',
    950: '#000000',
  },
}
SCSS
$custom: #212999;
$custom-light: #7264b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212999",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 153
  },
  "hsl": {
    "h": 236,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36335,
    "c": 0.17776,
    "h": 270.6
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#212999
secondary
#BFB856
accent
#DC40E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #212999

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

Preview Lab → · Contrast checker → · Palette generator →

#212999 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva