#3B176C#3B176C

#3B176C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.137 H 297.0°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#3B176C
RGBrgb(59, 23, 108)
HSLhsl(265, 65%, 26%)
HSVhsv(265, 79%, 42%)
CMYKcmyk(45.4%, 78.7%, 0%, 57.6%)
CIE-LABlab(18.48, 36.42, -42.55)
CIE-LCHlch(18.48, 56.00, 310.56°)
OKLaboklab(31.36% 0.062 -0.1218)
OKLCHoklch(31.36% 0.137 297)
XYZxyz(4.8161, 2.6252, 14.4374)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B176C #486C17
analogous
#171D6C #3B176C #65176C
triadic
#3B176C #6C3B17 #176C3B
tetradic
#3B176C #6C171D #486C17 #176C65
square
#3B176C #6C171D #486C17 #176C65
split-complementary
#3B176C #6C6517 #1D6C17
monochromatic
#0E0519 #1F0C3A #3B176C #57229E #722CD1

Accessibility & contrast

On white

13.77
#3B176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3B176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B176C
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B176C#FFFFFF#000000##FFFFFF
##3B176C1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#2E2D40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3b176c;
/* rgb */ color: rgb(59, 23, 108);
/* oklch */ color: oklch(31.4% 0.137 297.0);
Tailwind
colors: {
  custom: {
    50: '#765897',
    500: '#3b176c',
    950: '#000000',
  },
}
SCSS
$custom: #3b176c;
$custom-light: #765897;
$custom-dark: #000000;
JSON
{
  "hex": "#3b176c",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 265.412,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3136,
    "c": 0.13664,
    "h": 297
  },
  "luminance": 0.02625
}

Semantic roles & 50–950 ramp

primary
#3B176C
secondary
#77A23D
accent
#E840A1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3B176C

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

Preview Lab → · Contrast checker → · Palette generator →

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