#331C6B#331C6B

#331C6B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.129 H 290.2°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#331C6B
RGBrgb(51, 28, 107)
HSLhsl(257, 59%, 26%)
HSVhsv(257, 74%, 42%)
CMYKcmyk(52.3%, 73.8%, 0%, 58%)
CIE-LABlab(18.35, 31.94, -42.15)
CIE-LCHlch(18.35, 52.88, 307.16°)
OKLaboklab(31.01% 0.0444 -0.1209)
OKLCHoklch(31.01% 0.129 290.2)
XYZxyz(4.4336, 2.5957, 14.1745)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C6B #546B1C
analogous
#1C2D6B #331C6B #5B1C6B
triadic
#331C6B #6B331C #1C6B33
tetradic
#331C6B #6B1C2D #546B1C #1C6B5B
square
#331C6B #6B1C2D #546B1C #1C6B5B
split-complementary
#331C6B #6B5B1C #2D6B1C
monochromatic
#0C0618 #1C0F3A #331C6B #4A299C #6237CB

Accessibility & contrast

On white

13.82
#331C6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C6B
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C6B#FFFFFF#000000##FFFFFF
##331C6B1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#203041
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331c6b;
/* rgb */ color: rgb(51, 28, 107);
/* oklch */ color: oklch(31.0% 0.129 290.2);
Tailwind
colors: {
  custom: {
    50: '#715a96',
    500: '#331c6b',
    950: '#000000',
  },
}
SCSS
$custom: #331c6b;
$custom-light: #715a96;
$custom-dark: #000000;
JSON
{
  "hex": "#331c6b",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 107
  },
  "hsl": {
    "h": 257.468,
    "s": 58.519,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31012,
    "c": 0.12882,
    "h": 290.2
  },
  "luminance": 0.02596
}

Semantic roles & 50–950 ramp

primary
#331C6B
secondary
#85A043
accent
#E246B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331C6B

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

Preview Lab → · Contrast checker → · Palette generator →

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