#331166#331166

#331166 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.135 H 294.4°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#331166
RGBrgb(51, 17, 102)
HSLhsl(264, 71%, 23%)
HSVhsv(264, 83%, 40%)
CMYKcmyk(50%, 83.3%, 0%, 60%)
CIE-LABlab(15.82, 36.23, -43.01)
CIE-LCHlch(15.82, 56.23, 310.12°)
OKLaboklab(29.08% 0.056 -0.1234)
OKLCHoklch(29.08% 0.135 294.4)
XYZxyz(3.9633, 2.0639, 12.7573)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331166 #446611
analogous
#111966 #331166 #5D1166
triadic
#331166 #663311 #116633
tetradic
#331166 #661119 #446611 #11665D
square
#331166 #661119 #446611 #11665D
split-complementary
#331166 #665D11 #196611
monochromatic
#0D041A #190832 #331166 #4D1A9A #6722CF

Accessibility & contrast

On white

14.86
#331166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331166
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331166#FFFFFF#000000##FFFFFF
##3311661.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#24293B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331166;
/* rgb */ color: rgb(51, 17, 102);
/* oklch */ color: oklch(29.1% 0.135 294.4);
Tailwind
colors: {
  custom: {
    50: '#715492',
    500: '#331166',
    950: '#000000',
  },
}
SCSS
$custom: #331166;
$custom-light: #715492;
$custom-dark: #000000;
JSON
{
  "hex": "#331166",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 264,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29082,
    "c": 0.13548,
    "h": 294.4
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#331166
secondary
#749E35
accent
#EE3AA6
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331166

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

Preview Lab → · Contrast checker → · Palette generator →

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