#211781#211781

#211781 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.165 H 275.1°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#211781
RGBrgb(33, 23, 129)
HSLhsl(246, 70%, 30%)
HSVhsv(246, 82%, 51%)
CMYKcmyk(74.4%, 82.2%, 0%, 49.4%)
CIE-LABlab(18.01, 39.42, -56.90)
CIE-LCHlch(18.01, 69.22, 304.71°)
OKLaboklab(31.06% 0.0146 -0.1645)
OKLCHoklch(31.06% 0.165 275.1)
XYZxyz(4.8947, 2.5206, 20.9932)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211781 #778117
analogous
#174281 #211781 #561781
triadic
#211781 #812117 #178121
tetradic
#211781 #811742 #778117 #178156
square
#211781 #811742 #778117 #178156
split-complementary
#211781 #815617 #428117
monochromatic
#07051A #140E4D #211781 #2E20B5 #4737DB

Accessibility & contrast

On white

13.96
#211781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#211781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211781
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211781#FFFFFF#000000##FFFFFF
##2117811.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #211781;
/* rgb */ color: rgb(33, 23, 129);
/* oklch */ color: oklch(31.1% 0.165 275.1);
Tailwind
colors: {
  custom: {
    50: '#6d57a7',
    500: '#211781',
    950: '#000000',
  },
}
SCSS
$custom: #211781;
$custom-light: #6d57a7;
$custom-dark: #000000;
JSON
{
  "hex": "#211781",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 245.66,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31059,
    "c": 0.16518,
    "h": 275.1
  },
  "luminance": 0.02521
}

Semantic roles & 50–950 ramp

primary
#211781
secondary
#AAB53E
accent
#ED3BDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #211781

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

Preview Lab → · Contrast checker → · Palette generator →

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