#3B176B#3B176B

#3B176B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.135 H 297.4°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#3B176B
RGBrgb(59, 23, 107)
HSLhsl(266, 65%, 25%)
HSVhsv(266, 79%, 42%)
CMYKcmyk(44.9%, 78.5%, 0%, 58%)
CIE-LABlab(18.38, 36.14, -42.05)
CIE-LCHlch(18.38, 55.44, 310.68°)
OKLaboklab(31.27% 0.0623 -0.1203)
OKLCHoklch(31.27% 0.135 297.4)
XYZxyz(4.7632, 2.6040, 14.1587)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B176B #476B17
analogous
#171D6B #3B176B #65176B
triadic
#3B176B #6B3B17 #176B3B
tetradic
#3B176B #6B171D #476B17 #176B65
square
#3B176B #6B171D #476B17 #176B65
split-complementary
#3B176B #6B6517 #1D6B17
monochromatic
#0E0519 #1F0C39 #3B176B #57229D #732DD0

Accessibility & contrast

On white

13.81
#3B176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3B176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B176B
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B176B#FFFFFF#000000##FFFFFF
##3B176B1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#2F2D40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3b176b;
/* rgb */ color: rgb(59, 23, 107);
/* oklch */ color: oklch(31.3% 0.135 297.4);
Tailwind
colors: {
  custom: {
    50: '#765896',
    500: '#3b176b',
    950: '#000000',
  },
}
SCSS
$custom: #3b176b;
$custom-light: #765896;
$custom-dark: #000000;
JSON
{
  "hex": "#3b176b",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 265.714,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31266,
    "c": 0.13546,
    "h": 297.4
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#3B176B
secondary
#76A13D
accent
#E840A0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3B176B

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

Preview Lab → · Contrast checker → · Palette generator →

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