#3B1168#3B1168

#3B1168 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.139 H 299.7°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#3B1168
RGBrgb(59, 17, 104)
HSLhsl(269, 72%, 24%)
HSVhsv(269, 84%, 41%)
CMYKcmyk(43.3%, 83.7%, 0%, 59.2%)
CIE-LABlab(17.13, 38.10, -42.13)
CIE-LCHlch(17.13, 56.80, 312.13°)
OKLaboklab(30.3% 0.0686 -0.1205)
OKLCHoklch(30.3% 0.139 299.7)
XYZxyz(4.5021, 2.3301, 13.3066)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1168 #3E6811
analogous
#111268 #3B1168 #661168
triadic
#3B1168 #683B11 #11683B
tetradic
#3B1168 #681112 #3E6811 #116866
square
#3B1168 #681112 #3E6811 #116866
split-complementary
#3B1168 #686611 #126811
monochromatic
#0F041A #1D0833 #3B1168 #591A9D #7722D1

Accessibility & contrast

On white

14.32
#3B1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3B1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1168
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1168#FFFFFF#000000##FFFFFF
##3B11681.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002966
Tritanopia (blue-blind)
#30293D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3b1168;
/* rgb */ color: rgb(59, 17, 104);
/* oklch */ color: oklch(30.3% 0.139 299.7);
Tailwind
colors: {
  custom: {
    50: '#765594',
    500: '#3b1168',
    950: '#000000',
  },
}
SCSS
$custom: #3b1168;
$custom-light: #765594;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1168",
  "rgb": {
    "r": 59,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 268.966,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30303,
    "c": 0.13866,
    "h": 299.7
  },
  "luminance": 0.0233
}

Semantic roles & 50–950 ramp

primary
#3B1168
secondary
#6CA035
accent
#EF3997
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3B1168

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

Preview Lab → · Contrast checker → · Palette generator →

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