#212791#212791

#212791 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.170 H 271.3°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#212791
RGBrgb(33, 39, 145)
HSLhsl(237, 63%, 35%)
HSVhsv(237, 77%, 57%)
CMYKcmyk(77.2%, 73.1%, 0%, 43.1%)
CIE-LABlab(23.06, 35.70, -58.58)
CIE-LCHlch(23.06, 68.61, 301.36°)
OKLaboklab(35.16% 0.0039 -0.1696)
OKLCHoklch(35.16% 0.17 271.3)
XYZxyz(6.4618, 3.8180, 27.1790)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212791 #918B21
analogous
#215F91 #212791 #532191
triadic
#212791 #912127 #279121
tetradic
#212791 #91215F #918B21 #219153
square
#212791 #91215F #918B21 #219153
split-complementary
#212791 #915321 #5F9121
monochromatic
#0A0C2D #161A5F #212791 #2C34C3 #545BD8

Accessibility & contrast

On white

11.91
#212791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#212791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212791
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212791#FFFFFF#000000##FFFFFF
##2127911.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212791;
/* rgb */ color: rgb(33, 39, 145);
/* oklch */ color: oklch(35.2% 0.170 271.3);
Tailwind
colors: {
  custom: {
    50: '#7062b2',
    500: '#212791',
    950: '#000000',
  },
}
SCSS
$custom: #212791;
$custom-light: #7062b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212791",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 236.786,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35159,
    "c": 0.16961,
    "h": 271.3
  },
  "luminance": 0.03819
}

Semantic roles & 50–950 ramp

primary
#212791
secondary
#BCB652
accent
#DD42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212791

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

Preview Lab → · Contrast checker → · Palette generator →

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