#331D4B#331D4B

#331D4B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.083 H 303.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#331D4B
RGBrgb(51, 29, 75)
HSLhsl(269, 44%, 20%)
HSVhsv(269, 61%, 29%)
CMYKcmyk(32%, 61.3%, 0%, 70.6%)
CIE-LABlab(15.96, 21.57, -24.63)
CIE-LCHlch(15.96, 32.74, 311.21°)
OKLaboklab(28.46% 0.0462 -0.0695)
OKLCHoklch(28.46% 0.083 303.6)
XYZxyz(3.0743, 2.0905, 6.8968)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D4B #354B1D
analogous
#1D1E4B #331D4B #4A1D4B
triadic
#331D4B #4B331D #1D4B33
tetradic
#331D4B #4B1D1E #354B1D #1D4B4A
square
#331D4B #4B1D1E #354B1D #1D4B4A
split-complementary
#331D4B #4B4A1D #1E4B1D
monochromatic
#0F0916 #150C1F #331D4B #512E77 #6F3FA3

Accessibility & contrast

On white

14.81
#331D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#331D4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D4B
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D4B#FFFFFF#000000##FFFFFF
##331D4B1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C274D
Deuteranopia (green-blind)
#13284A
Tritanopia (blue-blind)
#2F2630
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331d4b;
/* rgb */ color: rgb(51, 29, 75);
/* oklch */ color: oklch(28.5% 0.083 303.6);
Tailwind
colors: {
  custom: {
    50: '#6c5a7d',
    500: '#331d4b',
    950: '#000000',
  },
}
SCSS
$custom: #331d4b;
$custom-light: #6c5a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#331d4b",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 75
  },
  "hsl": {
    "h": 268.696,
    "s": 44.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28456,
    "c": 0.08342,
    "h": 303.6
  },
  "luminance": 0.02091
}

Semantic roles & 50–950 ramp

primary
#331D4B
secondary
#638044
accent
#D45497
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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