#212189#212189

#212189 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.166 H 272.8°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#212189
RGBrgb(33, 33, 137)
HSLhsl(240, 61%, 33%)
HSVhsv(240, 76%, 54%)
CMYKcmyk(75.9%, 75.9%, 0%, 46.3%)
CIE-LABlab(20.89, 36.52, -57.18)
CIE-LCHlch(20.89, 67.85, 302.57°)
OKLaboklab(33.36% 0.0082 -0.1655)
OKLCHoklch(33.36% 0.166 272.8)
XYZxyz(5.6849, 3.2166, 23.9833)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212189 #898921
analogous
#215589 #212189 #552189
triadic
#212189 #892121 #218921
tetradic
#212189 #892155 #898921 #218955
square
#212189 #892155 #898921 #218955
split-complementary
#212189 #895521 #558921
monochromatic
#090926 #151558 #212189 #2D2DBA #5050D5

Accessibility & contrast

On white

12.78
#212189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212189
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212189#FFFFFF#000000##FFFFFF
##2121891.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212189;
/* rgb */ color: rgb(33, 33, 137);
/* oklch */ color: oklch(33.4% 0.166 272.8);
Tailwind
colors: {
  custom: {
    50: '#6e5ead',
    500: '#212189',
    950: '#000000',
  },
}
SCSS
$custom: #212189;
$custom-light: #6e5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#212189",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 240,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33355,
    "c": 0.16566,
    "h": 272.8
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212189

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

Preview Lab → · Contrast checker → · Palette generator →

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