#331F3E#331F3E

#331F3E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.061 H 312.7°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#331F3E
RGBrgb(51, 31, 62)
HSLhsl(279, 33%, 18%)
HSVhsv(279, 50%, 24%)
CMYKcmyk(17.7%, 50%, 0%, 75.7%)
CIE-LABlab(15.65, 16.59, -16.10)
CIE-LCHlch(15.65, 23.12, 315.85°)
OKLaboklab(27.96% 0.0412 -0.0446)
OKLCHoklch(27.96% 0.061 312.7)
XYZxyz(2.7246, 2.0316, 4.8051)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F3E #2A3E1F
analogous
#231F3E #331F3E #3E1F39
triadic
#331F3E #3E331F #1F3E33
tetradic
#331F3E #3E231F #2A3E1F #1F393E
square
#331F3E #3E231F #2A3E1F #1F393E
split-complementary
#331F3E #393E1F #1F3E23
monochromatic
#110A14 #110B15 #331F3E #553367 #764890

Accessibility & contrast

On white

14.93
#331F3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331F3E
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F3E#FFFFFF#000000##FFFFFF
##331F3E1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19263F
Deuteranopia (green-blind)
#1E283D
Tritanopia (blue-blind)
#32242B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331f3e;
/* rgb */ color: rgb(51, 31, 62);
/* oklch */ color: oklch(28.0% 0.061 312.7);
Tailwind
colors: {
  custom: {
    50: '#6b5b73',
    500: '#331f3e',
    950: '#000000',
  },
}
SCSS
$custom: #331f3e;
$custom-light: #6b5b73;
$custom-dark: #000000;
JSON
{
  "hex": "#331f3e",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 62
  },
  "hsl": {
    "h": 278.71,
    "s": 33.333,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27963,
    "c": 0.06076,
    "h": 312.7
  },
  "luminance": 0.02032
}

Semantic roles & 50–950 ramp

primary
#331F3E
secondary
#567247
accent
#C95E84
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070408
muted
#7A797B

Preview Lab

Preview with #331F3E

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

Preview Lab → · Contrast checker → · Palette generator →

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