#331E5F#331E5F

#331E5F is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.2% C 0.110 H 293.6°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#331E5F
RGBrgb(51, 30, 95)
HSLhsl(259, 52%, 25%)
HSVhsv(259, 68%, 37%)
CMYKcmyk(46.3%, 68.4%, 0%, 62.7%)
CIE-LABlab(17.73, 26.99, -35.26)
CIE-LCHlch(17.73, 44.40, 307.43°)
OKLaboklab(30.24% 0.0441 -0.1007)
OKLCHoklch(30.24% 0.11 293.6)
XYZxyz(3.8945, 2.4585, 11.0936)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E5F #4A5F1E
analogous
#1E295F #331E5F #541E5F
triadic
#331E5F #5F331E #1E5F33
tetradic
#331E5F #5F1E29 #4A5F1E #1E5F54
square
#331E5F #5F1E29 #4A5F1E #1E5F54
split-complementary
#331E5F #5F541E #295F1E
monochromatic
#0C0717 #1A0F30 #331E5F #4C2D8E #653BBC

Accessibility & contrast

On white

14.08
#331E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E5F
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E5F#FFFFFF#000000##FFFFFF
##331E5F1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#272D3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331e5f;
/* rgb */ color: rgb(51, 30, 95);
/* oklch */ color: oklch(30.2% 0.110 293.6);
Tailwind
colors: {
  custom: {
    50: '#6f5b8d',
    500: '#331e5f',
    950: '#000000',
  },
}
SCSS
$custom: #331e5f;
$custom-light: #6f5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#331e5f",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 95
  },
  "hsl": {
    "h": 259.385,
    "s": 52,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30239,
    "c": 0.1099,
    "h": 293.6
  },
  "luminance": 0.02459
}

Semantic roles & 50–950 ramp

primary
#331E5F
secondary
#7A9445
accent
#DB4CAD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #331E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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