#331C6C#331C6C

#331C6C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.130 H 289.8°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#331C6C
RGBrgb(51, 28, 108)
HSLhsl(257, 59%, 27%)
HSVhsv(257, 74%, 42%)
CMYKcmyk(52.8%, 74.1%, 0%, 57.6%)
CIE-LABlab(18.44, 32.26, -42.65)
CIE-LCHlch(18.44, 53.47, 307.10°)
OKLaboklab(31.11% 0.0442 -0.1224)
OKLCHoklch(31.11% 0.13 289.8)
XYZxyz(4.4865, 2.6168, 14.4532)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C6C #556C1C
analogous
#1C2D6C #331C6C #5B1C6C
triadic
#331C6C #6C331C #1C6C33
tetradic
#331C6C #6C1C2D #556C1C #1C6C5B
square
#331C6C #6C1C2D #556C1C #1C6C5B
split-complementary
#331C6C #6C5B1C #2D6C1C
monochromatic
#0B0618 #1C0F3B #331C6C #4A299D #6237CB

Accessibility & contrast

On white

13.78
#331C6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#331C6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C6C
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C6C#FFFFFF#000000##FFFFFF
##331C6C1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#1F3142
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331c6c;
/* rgb */ color: rgb(51, 28, 108);
/* oklch */ color: oklch(31.1% 0.130 289.8);
Tailwind
colors: {
  custom: {
    50: '#715a97',
    500: '#331c6c',
    950: '#000000',
  },
}
SCSS
$custom: #331c6c;
$custom-light: #715a97;
$custom-dark: #000000;
JSON
{
  "hex": "#331c6c",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 108
  },
  "hsl": {
    "h": 257.25,
    "s": 58.824,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31107,
    "c": 0.13012,
    "h": 289.8
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#331C6C
secondary
#86A143
accent
#E246B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331C6C

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

Preview Lab → · Contrast checker → · Palette generator →

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