#331160#331160

#331160 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.128 H 296.8°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#331160
RGBrgb(51, 17, 96)
HSLhsl(266, 70%, 22%)
HSVhsv(266, 82%, 38%)
CMYKcmyk(46.9%, 82.3%, 0%, 62.4%)
CIE-LABlab(15.22, 34.53, -40.01)
CIE-LCHlch(15.22, 52.86, 310.80°)
OKLaboklab(28.48% 0.0579 -0.1146)
OKLCHoklch(28.48% 0.128 296.8)
XYZxyz(3.6765, 1.9492, 11.2466)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331160 #3E6011
analogous
#111660 #331160 #5B1160
triadic
#331160 #603311 #116033
tetradic
#331160 #601116 #3E6011 #11605B
square
#331160 #601116 #3E6011 #11605B
split-complementary
#331160 #605B11 #166011
monochromatic
#0E051A #17082C #331160 #4F1A94 #6A23C8

Accessibility & contrast

On white

15.11
#331160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331160
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331160#FFFFFF#000000##FFFFFF
##3311601.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#272738
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331160;
/* rgb */ color: rgb(51, 17, 96);
/* oklch */ color: oklch(28.5% 0.128 296.8);
Tailwind
colors: {
  custom: {
    50: '#70538e',
    500: '#331160',
    950: '#000000',
  },
}
SCSS
$custom: #331160;
$custom-light: #70538e;
$custom-dark: #000000;
JSON
{
  "hex": "#331160",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 265.823,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28479,
    "c": 0.12841,
    "h": 296.8
  },
  "luminance": 0.01949
}

Semantic roles & 50–950 ramp

primary
#331160
secondary
#6D9934
accent
#ED3BA0
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331160

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

Preview Lab → · Contrast checker → · Palette generator →

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