#331060#331060

#331060 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.130 H 297.0°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#331060
RGBrgb(51, 16, 96)
HSLhsl(266, 71%, 22%)
HSVhsv(266, 83%, 38%)
CMYKcmyk(46.9%, 83.3%, 0%, 62.4%)
CIE-LABlab(15.06, 35.00, -40.28)
CIE-LCHlch(15.06, 53.37, 310.99°)
OKLaboklab(28.37% 0.0588 -0.1154)
OKLCHoklch(28.37% 0.13 297)
XYZxyz(3.6613, 1.9188, 11.2415)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331060 #3D6010
analogous
#101560 #331060 #5B1060
triadic
#331060 #603310 #106033
tetradic
#331060 #601015 #3D6010 #10605B
square
#331060 #601015 #3D6010 #10605B
split-complementary
#331060 #605B10 #156010
monochromatic
#0E041A #17072C #331060 #4F1994 #6B21C9

Accessibility & contrast

On white

15.18
#331060 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331060 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331060
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331060#FFFFFF#000000##FFFFFF
##3310601.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331060;
/* rgb */ color: rgb(51, 16, 96);
/* oklch */ color: oklch(28.4% 0.130 297.0);
Tailwind
colors: {
  custom: {
    50: '#70538e',
    500: '#331060',
    950: '#000000',
  },
}
SCSS
$custom: #331060;
$custom-light: #70538e;
$custom-dark: #000000;
JSON
{
  "hex": "#331060",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 96
  },
  "hsl": {
    "h": 266.25,
    "s": 71.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28366,
    "c": 0.1295,
    "h": 297
  },
  "luminance": 0.01919
}

Semantic roles & 50–950 ramp

primary
#331060
secondary
#6C9933
accent
#EE3A9F
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331060

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

Preview Lab → · Contrast checker → · Palette generator →

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