#212197#212197

#212197 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.183 H 271.7°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#212197
RGBrgb(33, 33, 151)
HSLhsl(240, 64%, 36%)
HSVhsv(240, 78%, 59%)
CMYKcmyk(78.1%, 78.1%, 0%, 40.8%)
CIE-LABlab(22.46, 41.33, -63.28)
CIE-LCHlch(22.46, 75.58, 303.15°)
OKLaboklab(34.93% 0.0055 -0.1832)
OKLCHoklch(34.93% 0.183 271.7)
XYZxyz(6.7551, 3.6447, 29.6196)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212197 #979721
analogous
#215C97 #212197 #5C2197
triadic
#212197 #972121 #219721
tetradic
#212197 #97215C #979721 #21975C
square
#212197 #97215C #979721 #21975C
split-complementary
#212197 #975C21 #5C9721
monochromatic
#0B0B33 #161665 #212197 #2C2CC9 #5858DA

Accessibility & contrast

On white

12.15
#212197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212197
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212197#FFFFFF#000000##FFFFFF
##2121971.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212197;
/* rgb */ color: rgb(33, 33, 151);
/* oklch */ color: oklch(34.9% 0.183 271.7);
Tailwind
colors: {
  custom: {
    50: '#725eb7',
    500: '#212197',
    950: '#000000',
  },
}
SCSS
$custom: #212197;
$custom-light: #725eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#212197",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.34928,
    "c": 0.18327,
    "h": 271.7
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#212197
secondary
#BEBE55
accent
#E741E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #212197

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

Preview Lab → · Contrast checker → · Palette generator →

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