#331C48#331C48

#331C48 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.081 H 306.0°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#331C48
RGBrgb(51, 28, 72)
HSLhsl(271, 44%, 20%)
HSVhsv(271, 61%, 28%)
CMYKcmyk(29.2%, 61.1%, 0%, 71.8%)
CIE-LABlab(15.50, 21.36, -23.29)
CIE-LCHlch(15.50, 31.61, 312.52°)
OKLaboklab(28.05% 0.0476 -0.0655)
OKLCHoklch(28.05% 0.081 306)
XYZxyz(2.9499, 2.0022, 6.3607)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C48 #31481C
analogous
#1D1C48 #331C48 #481C47
triadic
#331C48 #48331C #1C4833
tetradic
#331C48 #481D1C #31481C #1C4748
square
#331C48 #481D1C #31481C #1C4748
split-complementary
#331C48 #47481C #1C481D
monochromatic
#100916 #140B1C #331C48 #522D74 #713EA0

Accessibility & contrast

On white

15.00
#331C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331C48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C48
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C48#FFFFFF#000000##FFFFFF
##331C481.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2649
Deuteranopia (green-blind)
#152747
Tritanopia (blue-blind)
#30242F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331c48;
/* rgb */ color: rgb(51, 28, 72);
/* oklch */ color: oklch(28.1% 0.081 306.0);
Tailwind
colors: {
  custom: {
    50: '#6c597b',
    500: '#331c48',
    950: '#000000',
  },
}
SCSS
$custom: #331c48;
$custom-light: #6c597b;
$custom-dark: #000000;
JSON
{
  "hex": "#331c48",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 72
  },
  "hsl": {
    "h": 271.364,
    "s": 44,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28053,
    "c": 0.081,
    "h": 306
  },
  "luminance": 0.02002
}

Semantic roles & 50–950 ramp

primary
#331C48
secondary
#5F7D42
accent
#D45491
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #331C48

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

Preview Lab → · Contrast checker → · Palette generator →

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