#3B1166#3B1166

#3B1166 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.136 H 300.5°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#3B1166
RGBrgb(59, 17, 102)
HSLhsl(270, 71%, 23%)
HSVhsv(270, 83%, 40%)
CMYKcmyk(42.2%, 83.3%, 0%, 60%)
CIE-LABlab(16.94, 37.57, -41.12)
CIE-LCHlch(16.94, 55.70, 312.41°)
OKLaboklab(30.11% 0.0693 -0.1175)
OKLCHoklch(30.11% 0.136 300.5)
XYZxyz(4.4018, 2.2900, 12.7779)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1166 #3C6611
analogous
#111166 #3B1166 #651166
triadic
#3B1166 #663B11 #11663B
tetradic
#3B1166 #661111 #3C6611 #116665
square
#3B1166 #661111 #3C6611 #116665
split-complementary
#3B1166 #666511 #116611
monochromatic
#0F041A #1D0832 #3B1166 #591A9A #7822CF

Accessibility & contrast

On white

14.40
#3B1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3B1166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1166
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1166#FFFFFF#000000##FFFFFF
##3B11661.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#31283C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3b1166;
/* rgb */ color: rgb(59, 17, 102);
/* oklch */ color: oklch(30.1% 0.136 300.5);
Tailwind
colors: {
  custom: {
    50: '#765592',
    500: '#3b1166',
    950: '#000000',
  },
}
SCSS
$custom: #3b1166;
$custom-light: #765592;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1166",
  "rgb": {
    "r": 59,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 269.647,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30111,
    "c": 0.13644,
    "h": 300.5
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#3B1166
secondary
#6A9E35
accent
#EE3A95
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3B1166

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

Preview Lab → · Contrast checker → · Palette generator →

#3B1166 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva