#331C5B#331C5B

#331C5B is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.107 H 295.9°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#331C5B
RGBrgb(51, 28, 91)
HSLhsl(262, 53%, 23%)
HSVhsv(262, 69%, 36%)
CMYKcmyk(44%, 69.2%, 0%, 64.3%)
CIE-LABlab(16.94, 26.99, -33.88)
CIE-LCHlch(16.94, 43.31, 308.55°)
OKLaboklab(29.56% 0.047 -0.0966)
OKLCHoklch(29.56% 0.107 295.9)
XYZxyz(3.6683, 2.2896, 10.1442)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C5B #445B1C
analogous
#1C245B #331C5B #521C5B
triadic
#331C5B #5B331C #1C5B33
tetradic
#331C5B #5B1C24 #445B1C #1C5B52
square
#331C5B #5B1C24 #445B1C #1C5B52
split-complementary
#331C5B #5B521C #245B1C
monochromatic
#0D0717 #190E2C #331C5B #4D2A8A #6739B9

Accessibility & contrast

On white

14.40
#331C5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#331C5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C5B
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C5B#FFFFFF#000000##FFFFFF
##331C5B1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#292B38
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331c5b;
/* rgb */ color: rgb(51, 28, 91);
/* oklch */ color: oklch(29.6% 0.107 295.9);
Tailwind
colors: {
  custom: {
    50: '#6e5a8a',
    500: '#331c5b',
    950: '#000000',
  },
}
SCSS
$custom: #331c5b;
$custom-light: #6e5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#331c5b",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 91
  },
  "hsl": {
    "h": 261.905,
    "s": 52.941,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29563,
    "c": 0.10744,
    "h": 295.9
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#331C5B
secondary
#749042
accent
#DC4BA7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #331C5B

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

Preview Lab → · Contrast checker → · Palette generator →

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