#212198#212198

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

Color values

HEX#212198
RGBrgb(33, 33, 152)
HSLhsl(240, 64%, 36%)
HSVhsv(240, 78%, 60%)
CMYKcmyk(78.3%, 78.3%, 0%, 40.4%)
CIE-LABlab(22.57, 41.67, -63.71)
CIE-LCHlch(22.57, 76.12, 303.19°)
OKLaboklab(35.04% 0.0053 -0.1844)
OKLCHoklch(35.04% 0.185 271.6)
XYZxyz(6.8366, 3.6773, 30.0492)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212198 #989821
analogous
#215D98 #212198 #5D2198
triadic
#212198 #982121 #219821
tetradic
#212198 #98215D #989821 #21985D
square
#212198 #98215D #989821 #21985D
split-complementary
#212198 #985D21 #5D9821
monochromatic
#0B0B33 #161666 #212198 #2C2CCA #5959DB

Accessibility & contrast

On white

12.10
#212198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212198
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212198#FFFFFF#000000##FFFFFF
##2121981.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212198;
/* rgb */ color: rgb(33, 33, 152);
/* oklch */ color: oklch(35.0% 0.185 271.6);
Tailwind
colors: {
  custom: {
    50: '#725eb8',
    500: '#212198',
    950: '#000000',
  },
}
SCSS
$custom: #212198;
$custom-light: #725eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#212198",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 240,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35042,
    "c": 0.18451,
    "h": 271.6
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#212198
secondary
#BFBF56
accent
#E740E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #212198

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

Preview Lab → · Contrast checker → · Palette generator →

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