#212891#212891

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

Color values

HEX#212891
RGBrgb(33, 40, 145)
HSLhsl(236, 63%, 35%)
HSVhsv(236, 77%, 57%)
CMYKcmyk(77.2%, 72.4%, 0%, 43.1%)
CIE-LABlab(23.29, 35.08, -58.21)
CIE-LCHlch(23.29, 67.96, 301.08°)
OKLaboklab(35.32% 0.0034 -0.1685)
OKLCHoklch(35.32% 0.169 271.2)
XYZxyz(6.4951, 3.8846, 27.1901)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212891 #918A21
analogous
#216091 #212891 #522191
triadic
#212891 #912128 #289121
tetradic
#212891 #912160 #918A21 #219152
square
#212891 #912160 #918A21 #219152
split-complementary
#212891 #915221 #609121
monochromatic
#0A0C2D #161A5F #212891 #2C36C3 #545DD8

Accessibility & contrast

On white

11.82
#212891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#212891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212891
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212891#FFFFFF#000000##FFFFFF
##2128911.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212891;
/* rgb */ color: rgb(33, 40, 145);
/* oklch */ color: oklch(35.3% 0.169 271.2);
Tailwind
colors: {
  custom: {
    50: '#7063b2',
    500: '#212891',
    950: '#000000',
  },
}
SCSS
$custom: #212891;
$custom-light: #7063b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212891",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 236.25,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35321,
    "c": 0.16852,
    "h": 271.2
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

primary
#212891
secondary
#BCB552
accent
#DC42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212891

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

Preview Lab → · Contrast checker → · Palette generator →

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