#331148#331148

#331148 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.100 H 309.5°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#331148
RGBrgb(51, 17, 72)
HSLhsl(277, 62%, 17%)
HSVhsv(277, 76%, 28%)
CMYKcmyk(29.2%, 76.4%, 0%, 71.8%)
CIE-LABlab(13.06, 27.95, -27.20)
CIE-LCHlch(13.06, 39.00, 315.78°)
OKLaboklab(26.28% 0.0635 -0.077)
OKLCHoklch(26.28% 0.1 309.5)
XYZxyz(2.7352, 1.5726, 6.2891)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331148 #264811
analogous
#181148 #331148 #481142
triadic
#331148 #483311 #114833
tetradic
#331148 #481811 #264811 #114248
square
#331148 #481811 #264811 #114248
split-complementary
#331148 #424811 #114818
monochromatic
#120619 #120619 #331148 #561D7A #7928AB

Accessibility & contrast

On white

15.97
#331148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331148
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331148#FFFFFF#000000##FFFFFF
##3311481.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#072247
Tritanopia (blue-blind)
#301D2B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #331148;
/* rgb */ color: rgb(51, 17, 72);
/* oklch */ color: oklch(26.3% 0.100 309.5);
Tailwind
colors: {
  custom: {
    50: '#6d527b',
    500: '#331148',
    950: '#000000',
  },
}
SCSS
$custom: #331148;
$custom-light: #6d527b;
$custom-dark: #000000;
JSON
{
  "hex": "#331148",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 277.091,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26284,
    "c": 0.09975,
    "h": 309.5
  },
  "luminance": 0.01573
}

Semantic roles & 50–950 ramp

primary
#331148
secondary
#518233
accent
#E54381
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #331148

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

Preview Lab → · Contrast checker → · Palette generator →

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