#311566#311566

#311566 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.131 H 292.0°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#311566
RGBrgb(49, 21, 102)
HSLhsl(261, 66%, 24%)
HSVhsv(261, 79%, 40%)
CMYKcmyk(52%, 79.4%, 0%, 60%)
CIE-LABlab(16.25, 33.93, -42.31)
CIE-LCHlch(16.25, 54.24, 308.73°)
OKLaboklab(29.32% 0.0492 -0.1214)
OKLCHoklch(29.32% 0.131 292)
XYZxyz(3.9324, 2.1485, 12.7753)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311566 #4A6615
analogous
#152166 #311566 #5A1566
triadic
#311566 #663115 #156631
tetradic
#311566 #661521 #4A6615 #15665A
square
#311566 #661521 #4A6615 #15665A
split-complementary
#311566 #665A15 #216615
monochromatic
#0C0519 #190B33 #311566 #491F99 #622ACC

Accessibility & contrast

On white

14.69
#311566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#311566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311566
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311566#FFFFFF#000000##FFFFFF
##3115661.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#202B3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311566;
/* rgb */ color: rgb(49, 21, 102);
/* oklch */ color: oklch(29.3% 0.131 292.0);
Tailwind
colors: {
  custom: {
    50: '#705692',
    500: '#311566',
    950: '#000000',
  },
}
SCSS
$custom: #311566;
$custom-light: #705692;
$custom-dark: #000000;
JSON
{
  "hex": "#311566",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 260.741,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29324,
    "c": 0.13102,
    "h": 292
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#311566
secondary
#7B9D3A
accent
#E93FAE
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311566

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

Preview Lab → · Contrast checker → · Palette generator →

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