#331E5E#331E5E

#331E5E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.109 H 294.0°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#331E5E
RGBrgb(51, 30, 94)
HSLhsl(260, 52%, 24%)
HSVhsv(260, 68%, 37%)
CMYKcmyk(45.7%, 68.1%, 0%, 63.1%)
CIE-LABlab(17.65, 26.68, -34.73)
CIE-LCHlch(17.65, 43.79, 307.53°)
OKLaboklab(30.15% 0.0442 -0.0991)
OKLCHoklch(30.15% 0.109 294)
XYZxyz(3.8494, 2.4404, 10.8557)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E5E #495E1E
analogous
#1E295E #331E5E #531E5E
triadic
#331E5E #5E331E #1E5E33
tetradic
#331E5E #5E1E29 #495E1E #1E5E53
square
#331E5E #5E1E29 #495E1E #1E5E53
split-complementary
#331E5E #5E531E #295E1E
monochromatic
#0D0717 #1A0F30 #331E5E #4C2D8C #653CBB

Accessibility & contrast

On white

14.11
#331E5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E5E
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E5E#FFFFFF#000000##FFFFFF
##331E5E1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331e5e;
/* rgb */ color: rgb(51, 30, 94);
/* oklch */ color: oklch(30.2% 0.109 294.0);
Tailwind
colors: {
  custom: {
    50: '#6f5b8c',
    500: '#331e5e',
    950: '#000000',
  },
}
SCSS
$custom: #331e5e;
$custom-light: #6f5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#331e5e",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 94
  },
  "hsl": {
    "h": 259.688,
    "s": 51.613,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30153,
    "c": 0.10852,
    "h": 294
  },
  "luminance": 0.02441
}

Semantic roles & 50–950 ramp

primary
#331E5E
secondary
#799345
accent
#DB4DAC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #331E5E

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

Preview Lab → · Contrast checker → · Palette generator →

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