#211788#211788

#211788 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.174 H 274.2°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#211788
RGBrgb(33, 23, 136)
HSLhsl(245, 71%, 31%)
HSVhsv(245, 83%, 53%)
CMYKcmyk(75.7%, 83.1%, 0%, 46.7%)
CIE-LABlab(18.86, 41.69, -59.92)
CIE-LCHlch(18.86, 72.99, 304.83°)
OKLaboklab(31.89% 0.0127 -0.1733)
OKLCHoklch(31.89% 0.174 274.2)
XYZxyz(5.3761, 2.7132, 23.5281)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211788 #7E8817
analogous
#174588 #211788 #591788
triadic
#211788 #882117 #178821
tetradic
#211788 #881745 #7E8817 #178859
square
#211788 #881745 #7E8817 #178859
split-complementary
#211788 #885917 #458817
monochromatic
#08051F #140E54 #211788 #2E20BC #4A3BDE

Accessibility & contrast

On white

13.61
#211788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#211788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211788
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211788#FFFFFF#000000##FFFFFF
##2117881.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002986
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #211788;
/* rgb */ color: rgb(33, 23, 136);
/* oklch */ color: oklch(31.9% 0.174 274.2);
Tailwind
colors: {
  custom: {
    50: '#6f58ac',
    500: '#211788',
    950: '#000000',
  },
}
SCSS
$custom: #211788;
$custom-light: #6f58ac;
$custom-dark: #000000;
JSON
{
  "hex": "#211788",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 245.31,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31892,
    "c": 0.17375,
    "h": 274.2
  },
  "luminance": 0.02714
}

Semantic roles & 50–950 ramp

primary
#211788
secondary
#B1BC3F
accent
#EE3ADE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #211788

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

Preview Lab → · Contrast checker → · Palette generator →

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