#212190#212190

#212190 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.175 H 272.3°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#212190
RGBrgb(33, 33, 144)
HSLhsl(240, 63%, 35%)
HSVhsv(240, 77%, 56%)
CMYKcmyk(77.1%, 77.1%, 0%, 43.5%)
CIE-LABlab(21.67, 38.95, -60.26)
CIE-LCHlch(21.67, 71.75, 302.88°)
OKLaboklab(34.14% 0.0069 -0.1744)
OKLCHoklch(34.14% 0.175 272.3)
XYZxyz(6.2034, 3.4240, 26.7141)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212190 #909021
analogous
#215990 #212190 #592190
triadic
#212190 #902121 #219021
tetradic
#212190 #902159 #909021 #219059
square
#212190 #902159 #909021 #219059
split-complementary
#212190 #905921 #599021
monochromatic
#0A0A2C #16165E #212190 #2C2CC2 #5454D8

Accessibility & contrast

On white

12.46
#212190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#212190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212190
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212190#FFFFFF#000000##FFFFFF
##2121901.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212190;
/* rgb */ color: rgb(33, 33, 144);
/* oklch */ color: oklch(34.1% 0.175 272.3);
Tailwind
colors: {
  custom: {
    50: '#705eb2',
    500: '#212190',
    950: '#000000',
  },
}
SCSS
$custom: #212190;
$custom-light: #705eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#212190",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 144
  },
  "hsl": {
    "h": 240,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34135,
    "c": 0.17455,
    "h": 272.3
  },
  "luminance": 0.03425
}

Semantic roles & 50–950 ramp

primary
#212190
secondary
#BBBB51
accent
#E642E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #212190

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

Preview Lab → · Contrast checker → · Palette generator →

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