#331159#331159

#331159 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.120 H 300.0°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#331159
RGBrgb(51, 17, 89)
HSLhsl(268, 68%, 21%)
HSVhsv(268, 81%, 35%)
CMYKcmyk(42.7%, 80.9%, 0%, 65.1%)
CIE-LABlab(14.55, 32.57, -36.43)
CIE-LCHlch(14.55, 48.86, 311.80°)
OKLaboklab(27.8% 0.06 -0.1041)
OKLCHoklch(27.8% 0.12 300)
XYZxyz(3.3684, 1.8259, 9.6242)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331159 #375911
analogous
#111359 #331159 #571159
triadic
#331159 #593311 #115933
tetradic
#331159 #591113 #375911 #115957
square
#331159 #591113 #375911 #115957
split-complementary
#331159 #595711 #135911
monochromatic
#0F051A #160726 #331159 #501B8C #6E25C0

Accessibility & contrast

On white

15.38
#331159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331159
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331159#FFFFFF#000000##FFFFFF
##3311591.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#2A2434
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331159;
/* rgb */ color: rgb(51, 17, 89);
/* oklch */ color: oklch(27.8% 0.120 300.0);
Tailwind
colors: {
  custom: {
    50: '#6f5389',
    500: '#331159',
    950: '#000000',
  },
}
SCSS
$custom: #331159;
$custom-light: #6f5389;
$custom-dark: #000000;
JSON
{
  "hex": "#331159",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 268.333,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27801,
    "c": 0.1201,
    "h": 300
  },
  "luminance": 0.01826
}

Semantic roles & 50–950 ramp

primary
#331159
secondary
#669234
accent
#EB3D99
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020B
muted
#7B787C

Preview Lab

Preview with #331159

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

Preview Lab → · Contrast checker → · Palette generator →

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