#331D41#331D41

#331D41 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.8% C 0.069 H 310.8°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#331D41
RGBrgb(51, 29, 65)
HSLhsl(277, 38%, 18%)
HSVhsv(277, 55%, 25%)
CMYKcmyk(21.5%, 55.4%, 0%, 74.5%)
CIE-LABlab(15.30, 18.75, -18.76)
CIE-LCHlch(15.30, 26.52, 314.99°)
OKLaboklab(27.76% 0.0452 -0.0523)
OKLCHoklch(27.76% 0.069 310.8)
XYZxyz(2.7586, 1.9642, 5.2338)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D41 #2B411D
analogous
#211D41 #331D41 #411D3D
triadic
#331D41 #41331D #1D4133
tetradic
#331D41 #41211D #2B411D #1D3D41
square
#331D41 #41211D #2B411D #1D3D41
split-complementary
#331D41 #3D411D #1D4121
monochromatic
#110915 #120A17 #331D41 #54306B #754396

Accessibility & contrast

On white

15.08
#331D41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331D41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D41
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D41#FFFFFF#000000##FFFFFF
##331D411.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142542
Deuteranopia (green-blind)
#1B2740
Tritanopia (blue-blind)
#31232C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331d41;
/* rgb */ color: rgb(51, 29, 65);
/* oklch */ color: oklch(27.8% 0.069 310.8);
Tailwind
colors: {
  custom: {
    50: '#6c5976',
    500: '#331d41',
    950: '#000000',
  },
}
SCSS
$custom: #331d41;
$custom-light: #6c5976;
$custom-dark: #000000;
JSON
{
  "hex": "#331d41",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 65
  },
  "hsl": {
    "h": 276.667,
    "s": 38.298,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27757,
    "c": 0.06916,
    "h": 310.8
  },
  "luminance": 0.01964
}

Semantic roles & 50–950 ramp

primary
#331D41
secondary
#577644
accent
#CE5A87
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331D41

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

Preview Lab → · Contrast checker → · Palette generator →

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