#331C66#331C66

#331C66 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.5% C 0.122 H 291.8°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#331C66
RGBrgb(51, 28, 102)
HSLhsl(259, 57%, 25%)
HSVhsv(259, 73%, 40%)
CMYKcmyk(50%, 72.5%, 0%, 60%)
CIE-LABlab(17.89, 30.39, -39.62)
CIE-LCHlch(17.89, 49.93, 307.49°)
OKLaboklab(30.54% 0.0454 -0.1135)
OKLCHoklch(30.54% 0.122 291.8)
XYZxyz(4.1781, 2.4935, 12.8289)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C66 #4F661C
analogous
#1C2A66 #331C66 #581C66
triadic
#331C66 #66331C #1C6633
tetradic
#331C66 #661C2A #4F661C #1C6658
square
#331C66 #661C2A #4F661C #1C6658
split-complementary
#331C66 #66581C #2A661C
monochromatic
#0C0718 #1B0F36 #331C66 #4B2996 #6336C6

Accessibility & contrast

On white

14.01
#331C66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#331C66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C66
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C66#FFFFFF#000000##FFFFFF
##331C661.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002A65
Tritanopia (blue-blind)
#232E3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331c66;
/* rgb */ color: rgb(51, 28, 102);
/* oklch */ color: oklch(30.5% 0.122 291.8);
Tailwind
colors: {
  custom: {
    50: '#705a92',
    500: '#331c66',
    950: '#000000',
  },
}
SCSS
$custom: #331c66;
$custom-light: #705a92;
$custom-dark: #000000;
JSON
{
  "hex": "#331c66",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 102
  },
  "hsl": {
    "h": 258.649,
    "s": 56.923,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30544,
    "c": 0.12224,
    "h": 291.8
  },
  "luminance": 0.02494
}

Semantic roles & 50–950 ramp

primary
#331C66
secondary
#809B43
accent
#E048B1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331C66

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

Preview Lab → · Contrast checker → · Palette generator →

#331C66 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva