#212291#212291

#212291 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.175 H 272.0°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#212291
RGBrgb(33, 34, 145)
HSLhsl(239, 63%, 35%)
HSVhsv(239, 77%, 57%)
CMYKcmyk(77.2%, 76.6%, 0%, 43.1%)
CIE-LABlab(21.98, 38.71, -60.36)
CIE-LCHlch(21.98, 71.71, 302.68°)
OKLaboklab(34.39% 0.0062 -0.1747)
OKLCHoklch(34.39% 0.175 272)
XYZxyz(6.3083, 3.5110, 27.1278)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212291 #919021
analogous
#215A91 #212291 #582191
triadic
#212291 #912122 #229121
tetradic
#212291 #91215A #919021 #219158
square
#212291 #91215A #919021 #219158
split-complementary
#212291 #915821 #5A9121
monochromatic
#0A0B2D #16165F #212291 #2C2EC3 #5455D8

Accessibility & contrast

On white

12.34
#212291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#212291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212291
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212291#FFFFFF#000000##FFFFFF
##2122911.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212291;
/* rgb */ color: rgb(33, 34, 145);
/* oklch */ color: oklch(34.4% 0.175 272.0);
Tailwind
colors: {
  custom: {
    50: '#705fb2',
    500: '#212291',
    950: '#000000',
  },
}
SCSS
$custom: #212291;
$custom-light: #705fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#212291",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 239.464,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34392,
    "c": 0.17482,
    "h": 272
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#212291
secondary
#BCBB52
accent
#E542E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #212291

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

Preview Lab → · Contrast checker → · Palette generator →

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