#212790#212790

#212790 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.168 H 271.4°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#212790
RGBrgb(33, 39, 144)
HSLhsl(237, 63%, 35%)
HSVhsv(237, 77%, 56%)
CMYKcmyk(77.1%, 72.9%, 0%, 43.5%)
CIE-LABlab(22.96, 35.35, -58.14)
CIE-LCHlch(22.96, 68.04, 301.30°)
OKLaboklab(35.05% 0.004 -0.1683)
OKLCHoklch(35.05% 0.168 271.4)
XYZxyz(6.3851, 3.7873, 26.7747)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212790 #908A21
analogous
#215E90 #212790 #532190
triadic
#212790 #902127 #279021
tetradic
#212790 #90215E #908A21 #219053
square
#212790 #90215E #908A21 #219053
split-complementary
#212790 #905321 #5E9021
monochromatic
#0A0C2C #161A5E #212790 #2C34C2 #545BD8

Accessibility & contrast

On white

11.95
#212790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#212790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212790
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212790#FFFFFF#000000##FFFFFF
##2127901.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212790;
/* rgb */ color: rgb(33, 39, 144);
/* oklch */ color: oklch(35.1% 0.168 271.4);
Tailwind
colors: {
  custom: {
    50: '#7062b2',
    500: '#212790',
    950: '#000000',
  },
}
SCSS
$custom: #212790;
$custom-light: #7062b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212790",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 236.757,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35053,
    "c": 0.16832,
    "h": 271.4
  },
  "luminance": 0.03788
}

Semantic roles & 50–950 ramp

primary
#212790
secondary
#BBB651
accent
#DD42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212790

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

Preview Lab → · Contrast checker → · Palette generator →

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