#331E3F#331E3F

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

Color values

HEX#331E3F
RGBrgb(51, 30, 63)
HSLhsl(278, 35%, 18%)
HSVhsv(278, 52%, 25%)
CMYKcmyk(19%, 52.4%, 0%, 75.3%)
CIE-LABlab(15.44, 17.54, -17.13)
CIE-LCHlch(15.44, 24.52, 315.67°)
OKLaboklab(27.82% 0.0432 -0.0476)
OKLCHoklch(27.82% 0.064 312.2)
XYZxyz(2.7266, 1.9913, 4.9424)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E3F #2A3F1E
analogous
#221E3F #331E3F #3F1E3A
triadic
#331E3F #3F331E #1E3F33
tetradic
#331E3F #3F221E #2A3F1E #1E3A3F
square
#331E3F #3F221E #2A3F1E #1E3A3F
split-complementary
#331E3F #3A3F1E #1E3F22
monochromatic
#110A15 #110A16 #331E3F #553268 #764592

Accessibility & contrast

On white

15.02
#331E3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E3F
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E3F#FFFFFF#000000##FFFFFF
##331E3F1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172540
Deuteranopia (green-blind)
#1D273E
Tritanopia (blue-blind)
#32232B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331e3f;
/* rgb */ color: rgb(51, 30, 63);
/* oklch */ color: oklch(27.8% 0.064 312.2);
Tailwind
colors: {
  custom: {
    50: '#6b5a74',
    500: '#331e3f',
    950: '#000000',
  },
}
SCSS
$custom: #331e3f;
$custom-light: #6b5a74;
$custom-dark: #000000;
JSON
{
  "hex": "#331e3f",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 63
  },
  "hsl": {
    "h": 278.182,
    "s": 35.484,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27824,
    "c": 0.06428,
    "h": 312.2
  },
  "luminance": 0.01991
}

Semantic roles & 50–950 ramp

primary
#331E3F
secondary
#567345
accent
#CC5C85
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070408
muted
#7A797B

Preview Lab

Preview with #331E3F

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

Preview Lab → · Contrast checker → · Palette generator →

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