#212191#212191

#212191 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.176 H 272.2°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#212191
RGBrgb(33, 33, 145)
HSLhsl(240, 63%, 35%)
HSVhsv(240, 77%, 57%)
CMYKcmyk(77.2%, 77.2%, 0%, 43.1%)
CIE-LABlab(21.78, 39.29, -60.70)
CIE-LCHlch(21.78, 72.30, 302.92°)
OKLaboklab(34.25% 0.0067 -0.1757)
OKLCHoklch(34.25% 0.176 272.2)
XYZxyz(6.2802, 3.4547, 27.1184)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212191 #919121
analogous
#215991 #212191 #592191
triadic
#212191 #912121 #219121
tetradic
#212191 #912159 #919121 #219159
square
#212191 #912159 #919121 #219159
split-complementary
#212191 #915921 #599121
monochromatic
#0A0A2D #16165F #212191 #2C2CC3 #5454D8

Accessibility & contrast

On white

12.42
#212191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212191
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212191#FFFFFF#000000##FFFFFF
##2121911.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#002F8F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212191;
/* rgb */ color: rgb(33, 33, 145);
/* oklch */ color: oklch(34.2% 0.176 272.2);
Tailwind
colors: {
  custom: {
    50: '#715eb2',
    500: '#212191',
    950: '#000000',
  },
}
SCSS
$custom: #212191;
$custom-light: #715eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#212191",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 240,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34248,
    "c": 0.17582,
    "h": 272.2
  },
  "luminance": 0.03455
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212191

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

Preview Lab → · Contrast checker → · Palette generator →

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