#212188#212188

#212188 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.164 H 272.9°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#212188
RGBrgb(33, 33, 136)
HSLhsl(240, 61%, 33%)
HSVhsv(240, 76%, 53%)
CMYKcmyk(75.7%, 75.7%, 0%, 46.7%)
CIE-LABlab(20.78, 36.17, -56.73)
CIE-LCHlch(20.78, 67.29, 302.52°)
OKLaboklab(33.24% 0.0084 -0.1642)
OKLCHoklch(33.24% 0.164 272.9)
XYZxyz(5.6135, 3.1880, 23.6073)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212188 #888821
analogous
#215488 #212188 #542188
triadic
#212188 #882121 #218821
tetradic
#212188 #882154 #888821 #218854
square
#212188 #882154 #888821 #218854
split-complementary
#212188 #885421 #548821
monochromatic
#090925 #151557 #212188 #2D2DB9 #4F4FD4

Accessibility & contrast

On white

12.82
#212188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#212188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212188
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212188#FFFFFF#000000##FFFFFF
##2121881.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212188;
/* rgb */ color: rgb(33, 33, 136);
/* oklch */ color: oklch(33.2% 0.164 272.9);
Tailwind
colors: {
  custom: {
    50: '#6e5eac',
    500: '#212188',
    950: '#000000',
  },
}
SCSS
$custom: #212188;
$custom-light: #6e5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#212188",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 240,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33244,
    "c": 0.16437,
    "h": 272.9
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#212188
secondary
#B8B84D
accent
#E444E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212188

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

Preview Lab → · Contrast checker → · Palette generator →

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