#331059#331059

#331059 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.121 H 300.2°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#331059
RGBrgb(51, 16, 89)
HSLhsl(269, 70%, 21%)
HSVhsv(269, 82%, 35%)
CMYKcmyk(42.7%, 82%, 0%, 65.1%)
CIE-LABlab(14.38, 33.06, -36.70)
CIE-LCHlch(14.38, 49.40, 312.01°)
OKLaboklab(27.68% 0.061 -0.1049)
OKLCHoklch(27.68% 0.121 300.2)
XYZxyz(3.3533, 1.7956, 9.6192)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331059 #365910
analogous
#101159 #331059 #571059
triadic
#331059 #593310 #105933
tetradic
#331059 #591011 #365910 #105957
square
#331059 #591011 #365910 #105957
split-complementary
#331059 #595710 #115910
monochromatic
#0F051A #150725 #331059 #51198D #6E23C1

Accessibility & contrast

On white

15.45
#331059 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#331059 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331059
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331059#FFFFFF#000000##FFFFFF
##3310591.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#2A2334
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331059;
/* rgb */ color: rgb(51, 16, 89);
/* oklch */ color: oklch(27.7% 0.121 300.2);
Tailwind
colors: {
  custom: {
    50: '#6f5289',
    500: '#331059',
    950: '#000000',
  },
}
SCSS
$custom: #331059;
$custom-light: #6f5289;
$custom-dark: #000000;
JSON
{
  "hex": "#331059",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 89
  },
  "hsl": {
    "h": 268.767,
    "s": 69.524,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27681,
    "c": 0.1213,
    "h": 300.2
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#331059
secondary
#649233
accent
#EC3B98
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020B
muted
#7B787C

Preview Lab

Preview with #331059

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

Preview Lab → · Contrast checker → · Palette generator →

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