#3B176D#3B176D

#3B176D is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.138 H 296.6°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#3B176D
RGBrgb(59, 23, 109)
HSLhsl(265, 65%, 26%)
HSVhsv(265, 79%, 43%)
CMYKcmyk(45.9%, 78.9%, 0%, 57.3%)
CIE-LABlab(18.57, 36.70, -43.04)
CIE-LCHlch(18.57, 56.56, 310.45°)
OKLaboklab(31.45% 0.0617 -0.1232)
OKLCHoklch(31.45% 0.138 296.6)
XYZxyz(4.8696, 2.6466, 14.7193)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B176D #496D17
analogous
#171E6D #3B176D #66176D
triadic
#3B176D #6D3B17 #176D3B
tetradic
#3B176D #6D171E #496D17 #176D66
square
#3B176D #6D171E #496D17 #176D66
split-complementary
#3B176D #6D6617 #1E6D17
monochromatic
#0E0519 #200C3A #3B176D #5622A0 #722CD2

Accessibility & contrast

On white

13.73
#3B176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B176D
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B176D#FFFFFF#000000##FFFFFF
##3B176D1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#2E2E41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3b176d;
/* rgb */ color: rgb(59, 23, 109);
/* oklch */ color: oklch(31.5% 0.138 296.6);
Tailwind
colors: {
  custom: {
    50: '#775898',
    500: '#3b176d',
    950: '#000000',
  },
}
SCSS
$custom: #3b176d;
$custom-light: #775898;
$custom-dark: #000000;
JSON
{
  "hex": "#3b176d",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 265.116,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31454,
    "c": 0.13782,
    "h": 296.6
  },
  "luminance": 0.02647
}

Semantic roles & 50–950 ramp

primary
#3B176D
secondary
#78A33D
accent
#E840A2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3B176D

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

Preview Lab → · Contrast checker → · Palette generator →

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