#3B175D#3B175D

#3B175D is a dark, moderate violet. Relative luminance 0.023; OKLCH L 30.0% C 0.119 H 303.4°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#3B175D
RGBrgb(59, 23, 93)
HSLhsl(271, 60%, 23%)
HSVhsv(271, 75%, 36%)
CMYKcmyk(36.6%, 75.3%, 0%, 63.5%)
CIE-LABlab(17.15, 32.28, -34.83)
CIE-LCHlch(17.15, 47.48, 312.83°)
OKLaboklab(30% 0.0654 -0.0991)
OKLCHoklch(30% 0.119 303.4)
XYZxyz(4.0854, 2.3329, 10.5889)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B175D #395D17
analogous
#18175D #3B175D #5D175C
triadic
#3B175D #5D3B17 #175D3B
tetradic
#3B175D #5D1817 #395D17 #175C5D
square
#3B175D #5D1817 #395D17 #175C5D
split-complementary
#3B175D #5C5D17 #175D18
monochromatic
#100619 #1C0B2C #3B175D #5A238E #792FBF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3B175D#FFFFFF#000000##FFFFFF
##3B175D1.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)
#00295F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#342738
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3b175d;
/* rgb */ color: rgb(59, 23, 93);
/* oklch */ color: oklch(30.0% 0.119 303.4);
Tailwind
colors: {
  custom: {
    50: '#75578b',
    500: '#3b175d',
    950: '#000000',
  },
}
SCSS
$custom: #3b175d;
$custom-light: #75578b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b175d",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 270.857,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30004,
    "c": 0.11872,
    "h": 303.4
  },
  "luminance": 0.02333
}

Semantic roles & 50–950 ramp

primary
#3B175D
secondary
#67943C
accent
#E34492
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B175D

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

Preview Lab → · Contrast checker → · Palette generator →

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