#331E3E#331E3E

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

Color values

HEX#331E3E
RGBrgb(51, 30, 62)
HSLhsl(279, 35%, 18%)
HSVhsv(279, 52%, 24%)
CMYKcmyk(17.7%, 51.6%, 0%, 75.7%)
CIE-LABlab(15.38, 17.27, -16.53)
CIE-LCHlch(15.38, 23.90, 316.26°)
OKLaboklab(27.76% 0.043 -0.0459)
OKLCHoklch(27.76% 0.063 313.1)
XYZxyz(2.6989, 1.9802, 4.7965)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E3E #293E1E
analogous
#231E3E #331E3E #3E1E39
triadic
#331E3E #3E331E #1E3E33
tetradic
#331E3E #3E231E #293E1E #1E393E
square
#331E3E #3E231E #293E1E #1E393E
split-complementary
#331E3E #393E1E #1E3E23
monochromatic
#110A15 #110A15 #331E3E #553267 #774690

Accessibility & contrast

On white

15.04
#331E3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331E3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E3E
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E3E#FFFFFF#000000##FFFFFF
##331E3E1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17253F
Deuteranopia (green-blind)
#1D273D
Tritanopia (blue-blind)
#32232B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331e3e;
/* rgb */ color: rgb(51, 30, 62);
/* oklch */ color: oklch(27.8% 0.063 313.1);
Tailwind
colors: {
  custom: {
    50: '#6b5a73',
    500: '#331e3e',
    950: '#000000',
  },
}
SCSS
$custom: #331e3e;
$custom-light: #6b5a73;
$custom-dark: #000000;
JSON
{
  "hex": "#331e3e",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 62
  },
  "hsl": {
    "h": 279.375,
    "s": 34.783,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27761,
    "c": 0.06286,
    "h": 313.1
  },
  "luminance": 0.0198
}

Semantic roles & 50–950 ramp

primary
#331E3E
secondary
#557246
accent
#CB5D83
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070408
muted
#7A797B

Preview Lab

Preview with #331E3E

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

Preview Lab → · Contrast checker → · Palette generator →

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