#212391#212391

#212391 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.174 H 271.9°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#212391
RGBrgb(33, 35, 145)
HSLhsl(239, 63%, 35%)
HSVhsv(239, 77%, 57%)
CMYKcmyk(77.2%, 75.9%, 0%, 43.1%)
CIE-LABlab(22.19, 38.13, -60.01)
CIE-LCHlch(22.19, 71.10, 302.43°)
OKLaboklab(34.54% 0.0058 -0.1737)
OKLCHoklch(34.54% 0.174 271.9)
XYZxyz(6.3373, 3.5691, 27.1375)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212391 #918F21
analogous
#215B91 #212391 #572191
triadic
#212391 #912123 #239121
tetradic
#212391 #91215B #918F21 #219157
square
#212391 #91215B #918F21 #219157
split-complementary
#212391 #915721 #5B9121
monochromatic
#0A0B2D #16175F #212391 #2C2FC3 #5457D8

Accessibility & contrast

On white

12.25
#212391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#212391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212391
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212391#FFFFFF#000000##FFFFFF
##2123911.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212391;
/* rgb */ color: rgb(33, 35, 145);
/* oklch */ color: oklch(34.5% 0.174 271.9);
Tailwind
colors: {
  custom: {
    50: '#705fb2',
    500: '#212391',
    950: '#000000',
  },
}
SCSS
$custom: #212391;
$custom-light: #705fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#212391",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 238.929,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3454,
    "c": 0.17382,
    "h": 271.9
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

primary
#212391
secondary
#BCBA52
accent
#E342E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212391

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

Preview Lab → · Contrast checker → · Palette generator →

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