#331C4D#331C4D

#331C4D is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.088 H 302.8°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#331C4D
RGBrgb(51, 28, 77)
HSLhsl(268, 47%, 21%)
HSVhsv(268, 64%, 30%)
CMYKcmyk(33.8%, 63.6%, 0%, 69.8%)
CIE-LABlab(15.85, 22.80, -26.17)
CIE-LCHlch(15.85, 34.71, 311.07°)
OKLaboklab(28.43% 0.0478 -0.074)
OKLCHoklch(28.43% 0.088 302.8)
XYZxyz(3.1197, 2.0701, 7.2550)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C4D #364D1C
analogous
#1C1D4D #331C4D #4B1C4D
triadic
#331C4D #4D331C #1C4D33
tetradic
#331C4D #4D1C1D #364D1C #1C4D4B
square
#331C4D #4D1C1D #364D1C #1C4D4B
split-complementary
#331C4D #4D4B1C #1D4D1C
monochromatic
#0F0816 #150C20 #331C4D #512C7A #6E3DA7

Accessibility & contrast

On white

14.85
#331C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#331C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C4D
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C4D#FFFFFF#000000##FFFFFF
##331C4D1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07274F
Deuteranopia (green-blind)
#10274C
Tritanopia (blue-blind)
#2E2631
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331c4d;
/* rgb */ color: rgb(51, 28, 77);
/* oklch */ color: oklch(28.4% 0.088 302.8);
Tailwind
colors: {
  custom: {
    50: '#6d597f',
    500: '#331c4d',
    950: '#000000',
  },
}
SCSS
$custom: #331c4d;
$custom-light: #6d597f;
$custom-dark: #000000;
JSON
{
  "hex": "#331c4d",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 77
  },
  "hsl": {
    "h": 268.163,
    "s": 46.667,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28425,
    "c": 0.08804,
    "h": 302.8
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#331C4D
secondary
#648342
accent
#D65198
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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