#212899#212899

#212899 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.179 H 270.7°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#212899
RGBrgb(33, 40, 153)
HSLhsl(237, 65%, 36%)
HSVhsv(237, 78%, 60%)
CMYKcmyk(78.4%, 73.9%, 0%, 40%)
CIE-LABlab(24.13, 37.94, -61.75)
CIE-LCHlch(24.13, 72.47, 301.57°)
OKLaboklab(36.18% 0.0022 -0.1788)
OKLCHoklch(36.18% 0.179 270.7)
XYZxyz(7.1338, 4.1400, 30.5539)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212899 #999221
analogous
#216499 #212899 #562199
triadic
#212899 #992128 #289921
tetradic
#212899 #992164 #999221 #219956
square
#212899 #992164 #999221 #219956
split-complementary
#212899 #995621 #649921
monochromatic
#0B0E34 #161B67 #212899 #2C35CB #5961DB

Accessibility & contrast

On white

11.49
#212899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#212899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212899
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212899#FFFFFF#000000##FFFFFF
##2128991.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212899;
/* rgb */ color: rgb(33, 40, 153);
/* oklch */ color: oklch(36.2% 0.179 270.7);
Tailwind
colors: {
  custom: {
    50: '#7263b8',
    500: '#212899',
    950: '#000000',
  },
}
SCSS
$custom: #212899;
$custom-light: #7263b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212899",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 236.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36178,
    "c": 0.17881,
    "h": 270.7
  },
  "luminance": 0.04141
}

Semantic roles & 50–950 ramp

primary
#212899
secondary
#BFB956
accent
#DE40E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #212899

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

Preview Lab → · Contrast checker → · Palette generator →

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