#311660#311660

#311660 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.122 H 294.0°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#311660
RGBrgb(49, 22, 96)
HSLhsl(262, 63%, 23%)
HSVhsv(262, 77%, 38%)
CMYKcmyk(49%, 77.1%, 0%, 62.4%)
CIE-LABlab(15.86, 31.60, -38.98)
CIE-LCHlch(15.86, 50.18, 309.03°)
OKLaboklab(28.87% 0.0498 -0.1117)
OKLCHoklch(28.87% 0.122 294)
XYZxyz(3.6643, 2.0712, 11.2708)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311660 #456016
analogous
#162060 #311660 #561660
triadic
#311660 #603116 #166031
tetradic
#311660 #601620 #456016 #166056
square
#311660 #601620 #456016 #166056
split-complementary
#311660 #605616 #206016
monochromatic
#0D0619 #180B2E #311660 #4A2192 #642DC4

Accessibility & contrast

On white

14.85
#311660 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#311660 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311660
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311660#FFFFFF#000000##FFFFFF
##3116601.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002862
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#232939
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311660;
/* rgb */ color: rgb(49, 22, 96);
/* oklch */ color: oklch(28.9% 0.122 294.0);
Tailwind
colors: {
  custom: {
    50: '#6e568e',
    500: '#311660',
    950: '#000000',
  },
}
SCSS
$custom: #311660;
$custom-light: #6e568e;
$custom-dark: #000000;
JSON
{
  "hex": "#311660",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 96
  },
  "hsl": {
    "h": 261.892,
    "s": 62.712,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28869,
    "c": 0.12227,
    "h": 294
  },
  "luminance": 0.02071
}

Semantic roles & 50–950 ramp

primary
#311660
secondary
#75973B
accent
#E642AA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311660

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

Preview Lab → · Contrast checker → · Palette generator →

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