#211751#211751

#211751 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.101 H 284.7°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#211751
RGBrgb(33, 23, 81)
HSLhsl(250, 56%, 20%)
HSVhsv(250, 72%, 32%)
CMYKcmyk(59.3%, 71.6%, 0%, 68.2%)
CIE-LABlab(12.80, 22.93, -33.94)
CIE-LCHlch(12.80, 40.96, 304.04°)
OKLaboklab(25.8% 0.0257 -0.0975)
OKLCHoklch(25.8% 0.101 284.7)
XYZxyz(2.4183, 1.5301, 7.9509)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211751 #475117
analogous
#172A51 #211751 #3E1751
triadic
#211751 #512117 #175121
tetradic
#211751 #51172A #475117 #17513E
square
#211751 #51172A #475117 #17513E
split-complementary
#211751 #513E17 #2A5117
monochromatic
#0A0718 #0E0921 #211751 #342581 #4832B0

Accessibility & contrast

On white

16.08
#211751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#211751 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211751
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211751#FFFFFF#000000##FFFFFF
##2117511.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#001F50
Tritanopia (blue-blind)
#0C2531
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #211751;
/* rgb */ color: rgb(33, 23, 81);
/* oklch */ color: oklch(25.8% 0.101 284.7);
Tailwind
colors: {
  custom: {
    50: '#625482',
    500: '#211751',
    950: '#000000',
  },
}
SCSS
$custom: #211751;
$custom-light: #625482;
$custom-dark: #000000;
JSON
{
  "hex": "#211751",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 81
  },
  "hsl": {
    "h": 250.345,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25803,
    "c": 0.10082,
    "h": 284.7
  },
  "luminance": 0.0153
}

Semantic roles & 50–950 ramp

primary
#211751
secondary
#7B883C
accent
#DF49C5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#05030A
muted
#7A787C

Preview Lab

Preview with #211751

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

Preview Lab → · Contrast checker → · Palette generator →

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