#212491#212491

#212491 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.173 H 271.8°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#212491
RGBrgb(33, 36, 145)
HSLhsl(238, 63%, 35%)
HSVhsv(238, 77%, 57%)
CMYKcmyk(77.2%, 75.2%, 0%, 43.1%)
CIE-LABlab(22.40, 37.53, -59.67)
CIE-LCHlch(22.40, 70.49, 302.17°)
OKLaboklab(34.69% 0.0053 -0.1727)
OKLCHoklch(34.69% 0.173 271.8)
XYZxyz(6.3672, 3.6287, 27.1474)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212491 #918E21
analogous
#215C91 #212491 #562191
triadic
#212491 #912124 #249121
tetradic
#212491 #91215C #918E21 #219156
square
#212491 #91215C #918E21 #219156
split-complementary
#212491 #915621 #5C9121
monochromatic
#0A0B2D #16185F #212491 #2C30C3 #5458D8

Accessibility & contrast

On white

12.17
#212491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212491
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212491#FFFFFF#000000##FFFFFF
##2124911.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212491;
/* rgb */ color: rgb(33, 36, 145);
/* oklch */ color: oklch(34.7% 0.173 271.8);
Tailwind
colors: {
  custom: {
    50: '#7060b2',
    500: '#212491',
    950: '#000000',
  },
}
SCSS
$custom: #212491;
$custom-light: #7060b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212491",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 238.393,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34691,
    "c": 0.17279,
    "h": 271.8
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#212491
secondary
#BCB952
accent
#E242E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212491

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

Preview Lab → · Contrast checker → · Palette generator →

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