#3B175B#3B175B

#3B175B is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.116 H 304.4°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#3B175B
RGBrgb(59, 23, 91)
HSLhsl(272, 60%, 22%)
HSVhsv(272, 75%, 36%)
CMYKcmyk(35.2%, 74.7%, 0%, 64.3%)
CIE-LABlab(16.98, 31.74, -33.76)
CIE-LCHlch(16.98, 46.34, 313.23°)
OKLaboklab(29.83% 0.0657 -0.0959)
OKLCHoklch(29.83% 0.116 304.4)
XYZxyz(3.9979, 2.2979, 10.1284)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B175B #375B17
analogous
#19175B #3B175B #5B1759
triadic
#3B175B #5B3B17 #175B3B
tetradic
#3B175B #5B1917 #375B17 #17595B
square
#3B175B #5B1917 #375B17 #17595B
split-complementary
#3B175B #595B17 #175B19
monochromatic
#100618 #1B0B2A #3B175B #5B238C #7A30BD

Accessibility & contrast

On white

14.39
#3B175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B175B
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B175B#FFFFFF#000000##FFFFFF
##3B175B1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#352737
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3b175b;
/* rgb */ color: rgb(59, 23, 91);
/* oklch */ color: oklch(29.8% 0.116 304.4);
Tailwind
colors: {
  custom: {
    50: '#74578a',
    500: '#3b175b',
    950: '#000000',
  },
}
SCSS
$custom: #3b175b;
$custom-light: #74578a;
$custom-dark: #000000;
JSON
{
  "hex": "#3b175b",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 271.765,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29833,
    "c": 0.11631,
    "h": 304.4
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#3B175B
secondary
#64923C
accent
#E3458F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3B175B

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

Preview Lab → · Contrast checker → · Palette generator →

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