#211787#211787

#211787 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.173 H 274.3°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#211787
RGBrgb(33, 23, 135)
HSLhsl(245, 71%, 31%)
HSVhsv(245, 83%, 53%)
CMYKcmyk(75.6%, 83%, 0%, 47.1%)
CIE-LABlab(18.73, 41.37, -59.49)
CIE-LCHlch(18.73, 72.46, 304.81°)
OKLaboklab(31.77% 0.013 -0.172)
OKLCHoklch(31.77% 0.173 274.3)
XYZxyz(5.3053, 2.6849, 23.1556)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211787 #7D8717
analogous
#174587 #211787 #591787
triadic
#211787 #872117 #178721
tetradic
#211787 #871745 #7D8717 #178759
square
#211787 #871745 #7D8717 #178759
split-complementary
#211787 #875917 #458717
monochromatic
#07051E #140E53 #211787 #2E20BB #493BDE

Accessibility & contrast

On white

13.66
#211787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #211787
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211787#FFFFFF#000000##FFFFFF
##2117871.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002885
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #211787;
/* rgb */ color: rgb(33, 23, 135);
/* oklch */ color: oklch(31.8% 0.173 274.3);
Tailwind
colors: {
  custom: {
    50: '#6f58ab',
    500: '#211787',
    950: '#000000',
  },
}
SCSS
$custom: #211787;
$custom-light: #6f58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#211787",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 245.357,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31772,
    "c": 0.17254,
    "h": 274.3
  },
  "luminance": 0.02685
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #211787

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

Preview Lab → · Contrast checker → · Palette generator →

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