#331149#331149

#331149 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.101 H 308.9°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#331149
RGBrgb(51, 17, 73)
HSLhsl(276, 62%, 18%)
HSVhsv(276, 77%, 29%)
CMYKcmyk(30.1%, 76.7%, 0%, 71.4%)
CIE-LABlab(13.14, 28.21, -27.77)
CIE-LCHlch(13.14, 39.59, 315.46°)
OKLaboklab(26.37% 0.0633 -0.0786)
OKLCHoklch(26.37% 0.101 308.9)
XYZxyz(2.7680, 1.5858, 6.4623)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331149 #274911
analogous
#171149 #331149 #491143
triadic
#331149 #493311 #114933
tetradic
#331149 #491711 #274911 #114349
square
#331149 #491711 #274911 #114349
split-complementary
#331149 #434911 #114917
monochromatic
#110619 #110619 #331149 #561D7B #7828AC

Accessibility & contrast

On white

15.94
#331149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#331149 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331149
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331149#FFFFFF#000000##FFFFFF
##3311491.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331149;
/* rgb */ color: rgb(51, 17, 73);
/* oklch */ color: oklch(26.4% 0.101 308.9);
Tailwind
colors: {
  custom: {
    50: '#6d527c',
    500: '#331149',
    950: '#000000',
  },
}
SCSS
$custom: #331149;
$custom-light: #6d527c;
$custom-dark: #000000;
JSON
{
  "hex": "#331149",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 73
  },
  "hsl": {
    "h": 276.429,
    "s": 62.222,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26367,
    "c": 0.10095,
    "h": 308.9
  },
  "luminance": 0.01586
}

Semantic roles & 50–950 ramp

primary
#331149
secondary
#528233
accent
#E54382
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #331149

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

Preview Lab → · Contrast checker → · Palette generator →

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