#331575#331575

#331575 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.149 H 288.7°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#331575
RGBrgb(51, 21, 117)
HSLhsl(259, 70%, 27%)
HSVhsv(259, 82%, 46%)
CMYKcmyk(56.4%, 82.1%, 0%, 54.1%)
CIE-LABlab(18.03, 38.70, -49.15)
CIE-LCHlch(18.03, 62.55, 308.21°)
OKLaboklab(31.09% 0.0478 -0.1414)
OKLCHoklch(31.09% 0.149 288.7)
XYZxyz(4.8433, 2.5243, 17.0582)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331575 #577515
analogous
#152775 #331575 #631575
triadic
#331575 #753315 #157533
tetradic
#331575 #751527 #577515 #157563
square
#331575 #751527 #577515 #157563
split-complementary
#331575 #756315 #277515
monochromatic
#0B051A #1C0C41 #331575 #4A1EA9 #622BD9

Accessibility & contrast

On white

13.96
#331575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#331575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331575
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331575#FFFFFF#000000##FFFFFF
##3315751.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#183145
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331575;
/* rgb */ color: rgb(51, 21, 117);
/* oklch */ color: oklch(31.1% 0.149 288.7);
Tailwind
colors: {
  custom: {
    50: '#73579e',
    500: '#331575',
    950: '#000000',
  },
}
SCSS
$custom: #331575;
$custom-light: #73579e;
$custom-dark: #000000;
JSON
{
  "hex": "#331575",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 258.75,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31091,
    "c": 0.14924,
    "h": 288.7
  },
  "luminance": 0.02524
}

Semantic roles & 50–950 ramp

primary
#331575
secondary
#88AB3B
accent
#EC3BB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331575

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

Preview Lab → · Contrast checker → · Palette generator →

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