#331C6A#331C6A

#331C6A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.128 H 290.5°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#331C6A
RGBrgb(51, 28, 106)
HSLhsl(258, 58%, 26%)
HSVhsv(258, 74%, 42%)
CMYKcmyk(51.9%, 73.6%, 0%, 58.4%)
CIE-LABlab(18.25, 31.63, -41.64)
CIE-LCHlch(18.25, 52.30, 307.22°)
OKLaboklab(30.92% 0.0446 -0.1195)
OKLCHoklch(30.92% 0.128 290.5)
XYZxyz(4.3813, 2.5747, 13.8990)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C6A #536A1C
analogous
#1C2C6A #331C6A #5A1C6A
triadic
#331C6A #6A331C #1C6A33
tetradic
#331C6A #6A1C2C #536A1C #1C6A5A
square
#331C6A #6A1C2C #536A1C #1C6A5A
split-complementary
#331C6A #6A5A1C #2C6A1C
monochromatic
#0C0618 #1C0F3A #331C6A #4A299A #6236CA

Accessibility & contrast

On white

13.86
#331C6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C6A
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C6A#FFFFFF#000000##FFFFFF
##331C6A1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002B68
Tritanopia (blue-blind)
#213040
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331c6a;
/* rgb */ color: rgb(51, 28, 106);
/* oklch */ color: oklch(30.9% 0.128 290.5);
Tailwind
colors: {
  custom: {
    50: '#715a95',
    500: '#331c6a',
    950: '#000000',
  },
}
SCSS
$custom: #331c6a;
$custom-light: #715a95;
$custom-dark: #000000;
JSON
{
  "hex": "#331c6a",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 106
  },
  "hsl": {
    "h": 257.692,
    "s": 58.209,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30917,
    "c": 0.12751,
    "h": 290.5
  },
  "luminance": 0.02575
}

Semantic roles & 50–950 ramp

primary
#331C6A
secondary
#849F43
accent
#E146B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331C6A

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

Preview Lab → · Contrast checker → · Palette generator →

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