#331F41#331F41

#331F41 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.2% C 0.065 H 309.9°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#331F41
RGBrgb(51, 31, 65)
HSLhsl(275, 35%, 19%)
HSVhsv(275, 52%, 25%)
CMYKcmyk(21.5%, 52.3%, 0%, 74.5%)
CIE-LABlab(15.83, 17.40, -17.92)
CIE-LCHlch(15.83, 24.98, 314.16°)
OKLaboklab(28.15% 0.0418 -0.0499)
OKLCHoklch(28.15% 0.065 309.9)
XYZxyz(2.8092, 2.0655, 5.2507)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F41 #2D411F
analogous
#221F41 #331F41 #411F3E
triadic
#331F41 #41331F #1F4133
tetradic
#331F41 #41221F #2D411F #1F3E41
square
#331F41 #41221F #2D411F #1F3E41
split-complementary
#331F41 #3E411F #1F4122
monochromatic
#100A15 #120B18 #331F41 #54336A #744794

Accessibility & contrast

On white

14.86
#331F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331F41
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F41#FFFFFF#000000##FFFFFF
##331F411.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172642
Deuteranopia (green-blind)
#1C2840
Tritanopia (blue-blind)
#31242C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331f41;
/* rgb */ color: rgb(51, 31, 65);
/* oklch */ color: oklch(28.2% 0.065 309.9);
Tailwind
colors: {
  custom: {
    50: '#6b5b76',
    500: '#331f41',
    950: '#000000',
  },
}
SCSS
$custom: #331f41;
$custom-light: #6b5b76;
$custom-dark: #000000;
JSON
{
  "hex": "#331f41",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 65
  },
  "hsl": {
    "h": 275.294,
    "s": 35.417,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28151,
    "c": 0.06511,
    "h": 309.9
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#331F41
secondary
#5A7547
accent
#CB5C8A
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070408
muted
#7A797B

Preview Lab

Preview with #331F41

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

Preview Lab → · Contrast checker → · Palette generator →

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