#212499#212499

#212499 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.183 H 271.2°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#212499
RGBrgb(33, 36, 153)
HSLhsl(239, 65%, 36%)
HSVhsv(239, 78%, 60%)
CMYKcmyk(78.4%, 76.5%, 0%, 40%)
CIE-LABlab(23.28, 40.31, -63.14)
CIE-LCHlch(23.28, 74.91, 302.55°)
OKLaboklab(35.58% 0.0039 -0.1828)
OKLCHoklch(35.58% 0.183 271.2)
XYZxyz(7.0059, 3.8842, 30.5113)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212499 #999621
analogous
#216099 #212499 #5A2199
triadic
#212499 #992124 #249921
tetradic
#212499 #992160 #999621 #21995A
square
#212499 #992160 #999621 #21995A
split-complementary
#212499 #995A21 #609921
monochromatic
#0B0C34 #161867 #212499 #2C30CB #595CDB

Accessibility & contrast

On white

11.82
#212499 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#212499 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212499
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212499#FFFFFF#000000##FFFFFF
##2124991.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212499;
/* rgb */ color: rgb(33, 36, 153);
/* oklch */ color: oklch(35.6% 0.183 271.2);
Tailwind
colors: {
  custom: {
    50: '#7260b8',
    500: '#212499',
    950: '#000000',
  },
}
SCSS
$custom: #212499;
$custom-light: #7260b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212499",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 153
  },
  "hsl": {
    "h": 238.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35577,
    "c": 0.18287,
    "h": 271.2
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

primary
#212499
secondary
#BFBD56
accent
#E340E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #212499

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

Preview Lab → · Contrast checker → · Palette generator →

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