#331E5D#331E5D

#331E5D is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.107 H 294.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#331E5D
RGBrgb(51, 30, 93)
HSLhsl(260, 51%, 24%)
HSVhsv(260, 68%, 36%)
CMYKcmyk(45.2%, 67.7%, 0%, 63.5%)
CIE-LABlab(17.56, 26.37, -34.20)
CIE-LCHlch(17.56, 43.18, 307.63°)
OKLaboklab(30.07% 0.0443 -0.0976)
OKLCHoklch(30.07% 0.107 294.4)
XYZxyz(3.8048, 2.4226, 10.6209)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E5D #485D1E
analogous
#1E295D #331E5D #531E5D
triadic
#331E5D #5D331E #1E5D33
tetradic
#331E5D #5D1E29 #485D1E #1E5D53
square
#331E5D #5D1E29 #485D1E #1E5D53
split-complementary
#331E5D #5D531E #295D1E
monochromatic
#0D0717 #1A0F2F #331E5D #4C2D8B #663CBA

Accessibility & contrast

On white

14.15
#331E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#331E5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E5D
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E5D#FFFFFF#000000##FFFFFF
##331E5D1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#282C3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331e5d;
/* rgb */ color: rgb(51, 30, 93);
/* oklch */ color: oklch(30.1% 0.107 294.4);
Tailwind
colors: {
  custom: {
    50: '#6f5b8b',
    500: '#331e5d',
    950: '#000000',
  },
}
SCSS
$custom: #331e5d;
$custom-light: #6f5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#331e5d",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 93
  },
  "hsl": {
    "h": 260,
    "s": 51.22,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30068,
    "c": 0.10714,
    "h": 294.4
  },
  "luminance": 0.02423
}

Semantic roles & 50–950 ramp

primary
#331E5D
secondary
#789245
accent
#DB4DAB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #331E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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