#331E4F#331E4F

#331E4F is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.9% C 0.087 H 300.9°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#331E4F
RGBrgb(51, 30, 79)
HSLhsl(266, 45%, 21%)
HSVhsv(266, 62%, 31%)
CMYKcmyk(35.4%, 62%, 0%, 69%)
CIE-LABlab(16.49, 22.09, -26.51)
CIE-LCHlch(16.49, 34.51, 309.81°)
OKLaboklab(28.94% 0.0448 -0.075)
OKLCHoklch(28.94% 0.087 300.9)
XYZxyz(3.2405, 2.1969, 7.6489)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E4F #3A4F1E
analogous
#1E224F #331E4F #4C1E4F
triadic
#331E4F #4F331E #1E4F33
tetradic
#331E4F #4F1E22 #3A4F1E #1E4F4C
square
#331E4F #4F1E22 #3A4F1E #1E4F4C
split-complementary
#331E4F #4F4C1E #224F1E
monochromatic
#0E0816 #160D23 #331E4F #502F7B #6C40A8

Accessibility & contrast

On white

14.59
#331E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#331E4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E4F
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E4F#FFFFFF#000000##FFFFFF
##331E4F1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092951
Deuteranopia (green-blind)
#11294E
Tritanopia (blue-blind)
#2D2833
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331e4f;
/* rgb */ color: rgb(51, 30, 79);
/* oklch */ color: oklch(28.9% 0.087 300.9);
Tailwind
colors: {
  custom: {
    50: '#6d5a81',
    500: '#331e4f',
    950: '#000000',
  },
}
SCSS
$custom: #331e4f;
$custom-light: #6d5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#331e4f",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 79
  },
  "hsl": {
    "h": 265.714,
    "s": 44.954,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28939,
    "c": 0.08734,
    "h": 300.9
  },
  "luminance": 0.02197
}

Semantic roles & 50–950 ramp

primary
#331E4F
secondary
#698445
accent
#D5539D
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #331E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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