#212099#212099

#212099 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.187 H 271.7°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#212099
RGBrgb(33, 32, 153)
HSLhsl(240, 65%, 36%)
HSVhsv(240, 79%, 60%)
CMYKcmyk(78.4%, 79.1%, 0%, 40%)
CIE-LABlab(22.50, 42.55, -64.45)
CIE-LCHlch(22.50, 77.23, 303.44°)
OKLaboklab(35.02% 0.0054 -0.1866)
OKLCHoklch(35.02% 0.187 271.7)
XYZxyz(6.8915, 3.6555, 30.4732)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212099 #989920
analogous
#205C99 #212099 #5E2099
triadic
#212099 #992120 #209921
tetradic
#212099 #99205C #989920 #20995E
square
#212099 #99205C #989920 #20995E
split-complementary
#212099 #995E20 #5C9920
monochromatic
#0B0B34 #161566 #212099 #2C2BCC #5957DC

Accessibility & contrast

On white

12.13
#212099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212099
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212099#FFFFFF#000000##FFFFFF
##2120991.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003097
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212099;
/* rgb */ color: rgb(33, 32, 153);
/* oklch */ color: oklch(35.0% 0.187 271.7);
Tailwind
colors: {
  custom: {
    50: '#735eb8',
    500: '#212099',
    950: '#000000',
  },
}
SCSS
$custom: #212099;
$custom-light: #735eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#212099",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 240.496,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35022,
    "c": 0.18664,
    "h": 271.7
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#212099
secondary
#BFC055
accent
#E83FE7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #212099

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

Preview Lab → · Contrast checker → · Palette generator →

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