#212590#212590

#212590 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.170 H 271.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#212590
RGBrgb(33, 37, 144)
HSLhsl(238, 63%, 35%)
HSVhsv(238, 77%, 56%)
CMYKcmyk(77.1%, 74.3%, 0%, 43.5%)
CIE-LABlab(22.51, 36.58, -58.87)
CIE-LCHlch(22.51, 69.30, 301.85°)
OKLaboklab(34.74% 0.005 -0.1704)
OKLCHoklch(34.74% 0.17 271.7)
XYZxyz(6.3211, 3.6594, 26.7533)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212590 #908C21
analogous
#215D90 #212590 #552190
triadic
#212590 #902125 #259021
tetradic
#212590 #90215D #908C21 #219055
square
#212590 #90215D #908C21 #219055
split-complementary
#212590 #905521 #5D9021
monochromatic
#0A0B2C #16185E #212590 #2C32C2 #5458D8

Accessibility & contrast

On white

12.12
#212590 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212590
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212590#FFFFFF#000000##FFFFFF
##2125901.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212590;
/* rgb */ color: rgb(33, 37, 144);
/* oklch */ color: oklch(34.7% 0.170 271.7);
Tailwind
colors: {
  custom: {
    50: '#7060b2',
    500: '#212590',
    950: '#000000',
  },
}
SCSS
$custom: #212590;
$custom-light: #7060b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212590",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 144
  },
  "hsl": {
    "h": 237.838,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34735,
    "c": 0.17047,
    "h": 271.7
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212590

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

Preview Lab → · Contrast checker → · Palette generator →

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