#331147#331147

#331147 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.099 H 310.2°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#331147
RGBrgb(51, 17, 71)
HSLhsl(278, 61%, 17%)
HSVhsv(278, 76%, 28%)
CMYKcmyk(28.2%, 76.1%, 0%, 72.2%)
CIE-LABlab(12.98, 27.69, -26.64)
CIE-LCHlch(12.98, 38.42, 316.11°)
OKLaboklab(26.2% 0.0636 -0.0753)
OKLCHoklch(26.2% 0.099 310.2)
XYZxyz(2.7028, 1.5597, 6.1187)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331147 #254711
analogous
#181147 #331147 #471140
triadic
#331147 #473311 #114733
tetradic
#331147 #471811 #254711 #114047
square
#331147 #471811 #254711 #114047
split-complementary
#331147 #404711 #114718
monochromatic
#120619 #120619 #331147 #561D78 #7A29AA

Accessibility & contrast

On white

16.01
#331147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331147
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331147#FFFFFF#000000##FFFFFF
##3311471.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#092246
Tritanopia (blue-blind)
#301C2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331147;
/* rgb */ color: rgb(51, 17, 71);
/* oklch */ color: oklch(26.2% 0.099 310.2);
Tailwind
colors: {
  custom: {
    50: '#6d527b',
    500: '#331147',
    950: '#000000',
  },
}
SCSS
$custom: #331147;
$custom-light: #6d527b;
$custom-dark: #000000;
JSON
{
  "hex": "#331147",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 277.778,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26201,
    "c": 0.09854,
    "h": 310.2
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

primary
#331147
secondary
#508133
accent
#E4437F
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331147

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

Preview Lab → · Contrast checker → · Palette generator →

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