#212490#212490

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

Color values

HEX#212490
RGBrgb(33, 36, 144)
HSLhsl(238, 63%, 35%)
HSVhsv(238, 77%, 56%)
CMYKcmyk(77.1%, 75%, 0%, 43.5%)
CIE-LABlab(22.30, 37.18, -59.22)
CIE-LCHlch(22.30, 69.93, 302.12°)
OKLaboklab(34.58% 0.0055 -0.1714)
OKLCHoklch(34.58% 0.172 271.8)
XYZxyz(6.2904, 3.5980, 26.7431)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212490 #908D21
analogous
#215C90 #212490 #552190
triadic
#212490 #902124 #249021
tetradic
#212490 #90215C #908D21 #219055
square
#212490 #90215C #908D21 #219055
split-complementary
#212490 #905521 #5C9021
monochromatic
#0A0B2C #16185E #212490 #2C30C2 #5457D8

Accessibility & contrast

On white

12.21
#212490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212490 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212490
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212490#FFFFFF#000000##FFFFFF
##2124901.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212490;
/* rgb */ color: rgb(33, 36, 144);
/* oklch */ color: oklch(34.6% 0.172 271.8);
Tailwind
colors: {
  custom: {
    50: '#7060b2',
    500: '#212490',
    950: '#000000',
  },
}
SCSS
$custom: #212490;
$custom-light: #7060b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212490",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 144
  },
  "hsl": {
    "h": 238.378,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34581,
    "c": 0.17152,
    "h": 271.8
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212490

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

Preview Lab → · Contrast checker → · Palette generator →

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