#212290#212290

#212290 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.174 H 272.1°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#212290
RGBrgb(33, 34, 144)
HSLhsl(239, 63%, 35%)
HSVhsv(239, 77%, 56%)
CMYKcmyk(77.1%, 76.4%, 0%, 43.5%)
CIE-LABlab(21.87, 38.37, -59.92)
CIE-LCHlch(21.87, 71.15, 302.63°)
OKLaboklab(34.28% 0.0064 -0.1734)
OKLCHoklch(34.28% 0.174 272.1)
XYZxyz(6.2316, 3.4803, 26.7235)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212290 #908F21
analogous
#215A90 #212290 #572190
triadic
#212290 #902122 #229021
tetradic
#212290 #90215A #908F21 #219057
square
#212290 #90215A #908F21 #219057
split-complementary
#212290 #905721 #5A9021
monochromatic
#0A0A2C #16165E #212290 #2C2EC2 #5455D8

Accessibility & contrast

On white

12.38
#212290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#212290 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212290
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212290#FFFFFF#000000##FFFFFF
##2122901.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212290;
/* rgb */ color: rgb(33, 34, 144);
/* oklch */ color: oklch(34.3% 0.174 272.1);
Tailwind
colors: {
  custom: {
    50: '#705fb2',
    500: '#212290',
    950: '#000000',
  },
}
SCSS
$custom: #212290;
$custom-light: #705fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#212290",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 144
  },
  "hsl": {
    "h": 239.459,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34281,
    "c": 0.17356,
    "h": 272.1
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#212290
secondary
#BBBA51
accent
#E442E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #212290

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

Preview Lab → · Contrast checker → · Palette generator →

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