#331C5D#331C5D

#331C5D is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.110 H 295.1°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#331C5D
RGBrgb(51, 28, 93)
HSLhsl(261, 54%, 24%)
HSVhsv(261, 70%, 36%)
CMYKcmyk(45.2%, 69.9%, 0%, 63.5%)
CIE-LABlab(17.11, 27.61, -34.94)
CIE-LCHlch(17.11, 44.53, 308.31°)
OKLaboklab(29.74% 0.0468 -0.0997)
OKLCHoklch(29.74% 0.11 295.1)
XYZxyz(3.7558, 2.3245, 10.6046)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C5D #465D1C
analogous
#1C255D #331C5D #531C5D
triadic
#331C5D #5D331C #1C5D33
tetradic
#331C5D #5D1C25 #465D1C #1C5D53
square
#331C5D #5D1C25 #465D1C #1C5D53
split-complementary
#331C5D #5D531C #255D1C
monochromatic
#0D0718 #190E2E #331C5D #4D2A8C #6738BB

Accessibility & contrast

On white

14.33
#331C5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#331C5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C5D
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C5D#FFFFFF#000000##FFFFFF
##331C5D1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#282B39
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331c5d;
/* rgb */ color: rgb(51, 28, 93);
/* oklch */ color: oklch(29.7% 0.110 295.1);
Tailwind
colors: {
  custom: {
    50: '#6f5a8b',
    500: '#331c5d',
    950: '#000000',
  },
}
SCSS
$custom: #331c5d;
$custom-light: #6f5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#331c5d",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 93
  },
  "hsl": {
    "h": 261.231,
    "s": 53.719,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29736,
    "c": 0.11016,
    "h": 295.1
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#331C5D
secondary
#769242
accent
#DD4BA9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #331C5D

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

Preview Lab → · Contrast checker → · Palette generator →

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