#331048#331048

#331048 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.101 H 309.7°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#331048
RGBrgb(51, 16, 72)
HSLhsl(278, 64%, 17%)
HSVhsv(278, 78%, 28%)
CMYKcmyk(29.2%, 77.8%, 0%, 71.8%)
CIE-LABlab(12.87, 28.48, -27.51)
CIE-LCHlch(12.87, 39.59, 315.99°)
OKLaboklab(26.15% 0.0647 -0.0778)
OKLCHoklch(26.15% 0.101 309.7)
XYZxyz(2.7200, 1.5423, 6.2840)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331048 #254810
analogous
#171048 #331048 #481041
triadic
#331048 #483310 #104833
tetradic
#331048 #481710 #254810 #104148
square
#331048 #481710 #254810 #104148
split-complementary
#331048 #414810 #104817
monochromatic
#120619 #120619 #331048 #561B7A #7A26AC

Accessibility & contrast

On white

16.05
#331048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#331048 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331048
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331048#FFFFFF#000000##FFFFFF
##3310481.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#062247
Tritanopia (blue-blind)
#301C2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331048;
/* rgb */ color: rgb(51, 16, 72);
/* oklch */ color: oklch(26.2% 0.101 309.7);
Tailwind
colors: {
  custom: {
    50: '#6d517b',
    500: '#331048',
    950: '#000000',
  },
}
SCSS
$custom: #331048;
$custom-light: #6d517b;
$custom-dark: #000000;
JSON
{
  "hex": "#331048",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 72
  },
  "hsl": {
    "h": 277.5,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2615,
    "c": 0.10123,
    "h": 309.7
  },
  "luminance": 0.01542
}

Semantic roles & 50–950 ramp

primary
#331048
secondary
#508232
accent
#E7417F
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #331048

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

Preview Lab → · Contrast checker → · Palette generator →

#331048 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva