#331C4C#331C4C

#331C4C is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.3% C 0.087 H 303.4°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#331C4C
RGBrgb(51, 28, 76)
HSLhsl(269, 46%, 20%)
HSVhsv(269, 63%, 30%)
CMYKcmyk(32.9%, 63.2%, 0%, 70.2%)
CIE-LABlab(15.78, 22.51, -25.60)
CIE-LCHlch(15.78, 34.09, 311.33°)
OKLaboklab(28.35% 0.0477 -0.0723)
OKLCHoklch(28.35% 0.087 303.4)
XYZxyz(3.0847, 2.0561, 7.0704)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C4C #354C1C
analogous
#1C1D4C #331C4C #4B1C4C
triadic
#331C4C #4C331C #1C4C33
tetradic
#331C4C #4C1C1D #354C1C #1C4C4B
square
#331C4C #4C1C1D #354C1C #1C4C4B
split-complementary
#331C4C #4C4B1C #1D4C1C
monochromatic
#0F0816 #150C1F #331C4C #512C79 #6F3DA5

Accessibility & contrast

On white

14.88
#331C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C4C
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C4C#FFFFFF#000000##FFFFFF
##331C4C1.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08274E
Deuteranopia (green-blind)
#11274B
Tritanopia (blue-blind)
#2E2531
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331c4c;
/* rgb */ color: rgb(51, 28, 76);
/* oklch */ color: oklch(28.3% 0.087 303.4);
Tailwind
colors: {
  custom: {
    50: '#6d597e',
    500: '#331c4c',
    950: '#000000',
  },
}
SCSS
$custom: #331c4c;
$custom-light: #6d597e;
$custom-dark: #000000;
JSON
{
  "hex": "#331c4c",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 76
  },
  "hsl": {
    "h": 268.75,
    "s": 46.154,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28349,
    "c": 0.08664,
    "h": 303.4
  },
  "luminance": 0.02056
}

Semantic roles & 50–950 ramp

primary
#331C4C
secondary
#638242
accent
#D65297
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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