#212591#212591

#212591 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.172 H 271.6°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#212591
RGBrgb(33, 37, 145)
HSLhsl(238, 63%, 35%)
HSVhsv(238, 77%, 57%)
CMYKcmyk(77.2%, 74.5%, 0%, 43.1%)
CIE-LABlab(22.62, 36.93, -59.31)
CIE-LCHlch(22.62, 69.87, 301.91°)
OKLaboklab(34.84% 0.0049 -0.1717)
OKLCHoklch(34.84% 0.172 271.6)
XYZxyz(6.3979, 3.6901, 27.1577)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212591 #918D21
analogous
#215D91 #212591 #552191
triadic
#212591 #912125 #259121
tetradic
#212591 #91215D #918D21 #219155
square
#212591 #91215D #918D21 #219155
split-complementary
#212591 #915521 #5D9121
monochromatic
#0A0C2D #16185F #212591 #2C32C3 #5459D8

Accessibility & contrast

On white

12.08
#212591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212591
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212591#FFFFFF#000000##FFFFFF
##2125911.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212591;
/* rgb */ color: rgb(33, 37, 145);
/* oklch */ color: oklch(34.8% 0.172 271.6);
Tailwind
colors: {
  custom: {
    50: '#7061b2',
    500: '#212591',
    950: '#000000',
  },
}
SCSS
$custom: #212591;
$custom-light: #7061b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212591",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 237.857,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34844,
    "c": 0.17175,
    "h": 271.6
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#212591
secondary
#BCB852
accent
#E042E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212591

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

Preview Lab → · Contrast checker → · Palette generator →

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