#331C6F#331C6F

#331C6F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.134 H 289.0°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#331C6F
RGBrgb(51, 28, 111)
HSLhsl(257, 60%, 27%)
HSVhsv(257, 75%, 44%)
CMYKcmyk(54.1%, 74.8%, 0%, 56.5%)
CIE-LABlab(18.72, 33.19, -44.13)
CIE-LCHlch(18.72, 55.22, 306.95°)
OKLaboklab(31.4% 0.0435 -0.1268)
OKLCHoklch(31.4% 0.134 289)
XYZxyz(4.6489, 2.6818, 15.3085)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C6F #586F1C
analogous
#1C2E6F #331C6F #5D1C6F
triadic
#331C6F #6F331C #1C6F33
tetradic
#331C6F #6F1C2E #586F1C #1C6F5D
square
#331C6F #6F1C2E #586F1C #1C6F5D
split-complementary
#331C6F #6F5D1C #2E6F1C
monochromatic
#0B0618 #1D103E #331C6F #4928A0 #6238CD

Accessibility & contrast

On white

13.67
#331C6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#331C6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C6F
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C6F#FFFFFF#000000##FFFFFF
##331C6F1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#1D3243
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331c6f;
/* rgb */ color: rgb(51, 28, 111);
/* oklch */ color: oklch(31.4% 0.134 289.0);
Tailwind
colors: {
  custom: {
    50: '#725a99',
    500: '#331c6f',
    950: '#000000',
  },
}
SCSS
$custom: #331c6f;
$custom-light: #725a99;
$custom-dark: #000000;
JSON
{
  "hex": "#331c6f",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 111
  },
  "hsl": {
    "h": 256.627,
    "s": 59.712,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31395,
    "c": 0.13403,
    "h": 289
  },
  "luminance": 0.02682
}

Semantic roles & 50–950 ramp

primary
#331C6F
secondary
#89A443
accent
#E345B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331C6F

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

Preview Lab → · Contrast checker → · Palette generator →

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