#212890#212890

#212890 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.167 H 271.2°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#212890
RGBrgb(33, 40, 144)
HSLhsl(236, 63%, 35%)
HSVhsv(236, 77%, 56%)
CMYKcmyk(77.1%, 72.2%, 0%, 43.5%)
CIE-LABlab(23.18, 34.72, -57.76)
CIE-LCHlch(23.18, 67.39, 301.01°)
OKLaboklab(35.22% 0.0035 -0.1672)
OKLCHoklch(35.22% 0.167 271.2)
XYZxyz(6.4183, 3.8538, 26.7858)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212890 #908921
analogous
#216090 #212890 #512190
triadic
#212890 #902128 #289021
tetradic
#212890 #902160 #908921 #219051
square
#212890 #902160 #908921 #219051
split-complementary
#212890 #905121 #609021
monochromatic
#0A0C2C #161A5E #212890 #2C36C2 #545CD8

Accessibility & contrast

On white

11.86
#212890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#212890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212890
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212890#FFFFFF#000000##FFFFFF
##2128901.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212890;
/* rgb */ color: rgb(33, 40, 144);
/* oklch */ color: oklch(35.2% 0.167 271.2);
Tailwind
colors: {
  custom: {
    50: '#7062b2',
    500: '#212890',
    950: '#000000',
  },
}
SCSS
$custom: #212890;
$custom-light: #7062b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212890",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 144
  },
  "hsl": {
    "h": 236.216,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35216,
    "c": 0.16723,
    "h": 271.2
  },
  "luminance": 0.03855
}

Semantic roles & 50–950 ramp

primary
#212890
secondary
#BBB551
accent
#DB42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212890

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

Preview Lab → · Contrast checker → · Palette generator →

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