#331666#331666

#331666 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.130 H 293.4°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#331666
RGBrgb(51, 22, 102)
HSLhsl(262, 65%, 24%)
HSVhsv(262, 78%, 40%)
CMYKcmyk(50%, 78.4%, 0%, 60%)
CIE-LABlab(16.68, 33.76, -41.59)
CIE-LCHlch(16.68, 53.56, 309.07°)
OKLaboklab(29.69% 0.0515 -0.1193)
OKLCHoklch(29.69% 0.13 293.4)
XYZxyz(4.0498, 2.2368, 12.7862)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331666 #496616
analogous
#162166 #331666 #5B1666
triadic
#331666 #663316 #166633
tetradic
#331666 #661621 #496616 #16665B
square
#331666 #661621 #496616 #16665B
split-complementary
#331666 #665B16 #216616
monochromatic
#0D0519 #1A0B34 #331666 #4C2198 #652CCB

Accessibility & contrast

On white

14.51
#331666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#331666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331666
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331666#FFFFFF#000000##FFFFFF
##3316661.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002864
Tritanopia (blue-blind)
#232B3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331666;
/* rgb */ color: rgb(51, 22, 102);
/* oklch */ color: oklch(29.7% 0.130 293.4);
Tailwind
colors: {
  custom: {
    50: '#715692',
    500: '#331666',
    950: '#000000',
  },
}
SCSS
$custom: #331666;
$custom-light: #715692;
$custom-dark: #000000;
JSON
{
  "hex": "#331666",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 261.75,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29688,
    "c": 0.12991,
    "h": 293.4
  },
  "luminance": 0.02237
}

Semantic roles & 50–950 ramp

primary
#331666
secondary
#799D3B
accent
#E840AB
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331666

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

Preview Lab → · Contrast checker → · Palette generator →

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