#212399#212399

#212399 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.184 H 271.3°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#212399
RGBrgb(33, 35, 153)
HSLhsl(239, 65%, 36%)
HSVhsv(239, 78%, 60%)
CMYKcmyk(78.4%, 77.1%, 0%, 40%)
CIE-LABlab(23.08, 40.89, -63.48)
CIE-LCHlch(23.08, 75.51, 302.78°)
OKLaboklab(35.43% 0.0043 -0.1838)
OKLCHoklch(35.43% 0.184 271.3)
XYZxyz(6.9761, 3.8245, 30.5014)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212399 #999721
analogous
#215F99 #212399 #5B2199
triadic
#212399 #992123 #239921
tetradic
#212399 #99215F #999721 #21995B
square
#212399 #99215F #999721 #21995B
split-complementary
#212399 #995B21 #5F9921
monochromatic
#0B0C34 #161767 #212399 #2C2FCB #595BDB

Accessibility & contrast

On white

11.90
#212399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#212399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212399
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212399#FFFFFF#000000##FFFFFF
##2123991.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212399;
/* rgb */ color: rgb(33, 35, 153);
/* oklch */ color: oklch(35.4% 0.184 271.3);
Tailwind
colors: {
  custom: {
    50: '#7260b8',
    500: '#212399',
    950: '#000000',
  },
}
SCSS
$custom: #212399;
$custom-light: #7260b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212399",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 239,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35434,
    "c": 0.18384,
    "h": 271.3
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#212399
secondary
#BFBE56
accent
#E540E8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #212399

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

Preview Lab → · Contrast checker → · Palette generator →

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