#331C4B#331C4B

#331C4B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.085 H 304.0°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#331C4B
RGBrgb(51, 28, 75)
HSLhsl(269, 46%, 20%)
HSVhsv(269, 63%, 29%)
CMYKcmyk(32%, 62.7%, 0%, 70.6%)
CIE-LABlab(15.71, 22.22, -25.03)
CIE-LCHlch(15.71, 33.47, 311.60°)
OKLaboklab(28.27% 0.0477 -0.0706)
OKLCHoklch(28.27% 0.085 304)
XYZxyz(3.0502, 2.0423, 6.8888)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C4B #344B1C
analogous
#1C1C4B #331C4B #4A1C4B
triadic
#331C4B #4B331C #1C4B33
tetradic
#331C4B #4B1C1C #344B1C #1C4B4A
square
#331C4B #4B1C1C #344B1C #1C4B4A
split-complementary
#331C4B #4B4A1C #1C4B1C
monochromatic
#0F0816 #150B1E #331C4B #512D78 #703DA4

Accessibility & contrast

On white

14.91
#331C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#331C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C4B
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C4B#FFFFFF#000000##FFFFFF
##331C4B1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09274D
Deuteranopia (green-blind)
#12274A
Tritanopia (blue-blind)
#2F2530
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331c4b;
/* rgb */ color: rgb(51, 28, 75);
/* oklch */ color: oklch(28.3% 0.085 304.0);
Tailwind
colors: {
  custom: {
    50: '#6d597d',
    500: '#331c4b',
    950: '#000000',
  },
}
SCSS
$custom: #331c4b;
$custom-light: #6d597d;
$custom-dark: #000000;
JSON
{
  "hex": "#331c4b",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 75
  },
  "hsl": {
    "h": 269.362,
    "s": 45.631,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28274,
    "c": 0.08523,
    "h": 304
  },
  "luminance": 0.02042
}

Semantic roles & 50–950 ramp

primary
#331C4B
secondary
#628142
accent
#D55295
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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