#331046#331046

#331046 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.099 H 311.1°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#331046
RGBrgb(51, 16, 70)
HSLhsl(279, 63%, 17%)
HSVhsv(279, 77%, 27%)
CMYKcmyk(27.1%, 77.1%, 0%, 72.5%)
CIE-LABlab(12.71, 27.96, -26.37)
CIE-LCHlch(12.71, 38.44, 316.67°)
OKLaboklab(25.98% 0.065 -0.0745)
OKLCHoklch(25.98% 0.099 311.1)
XYZxyz(2.6558, 1.5166, 5.9460)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331046 #234610
analogous
#181046 #331046 #46103E
triadic
#331046 #463310 #104633
tetradic
#331046 #461810 #234610 #103E46
square
#331046 #461810 #234610 #103E46
split-complementary
#331046 #3E4610 #104618
monochromatic
#120619 #120619 #331046 #571B78 #7C27AA

Accessibility & contrast

On white

16.11
#331046 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#331046 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331046
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331046#FFFFFF#000000##FFFFFF
##3310461.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#092245
Tritanopia (blue-blind)
#311B29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331046;
/* rgb */ color: rgb(51, 16, 70);
/* oklch */ color: oklch(26.0% 0.099 311.1);
Tailwind
colors: {
  custom: {
    50: '#6d517a',
    500: '#331046',
    950: '#000000',
  },
}
SCSS
$custom: #331046;
$custom-light: #6d517a;
$custom-dark: #000000;
JSON
{
  "hex": "#331046",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 70
  },
  "hsl": {
    "h": 278.889,
    "s": 62.791,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25983,
    "c": 0.09887,
    "h": 311.1
  },
  "luminance": 0.01517
}

Semantic roles & 50–950 ramp

primary
#331046
secondary
#4D8032
accent
#E6427C
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331046

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

Preview Lab → · Contrast checker → · Palette generator →

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