#3B175A#3B175A

#3B175A is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.115 H 304.9°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#3B175A
RGBrgb(59, 23, 90)
HSLhsl(272, 59%, 22%)
HSVhsv(272, 74%, 35%)
CMYKcmyk(34.4%, 74.4%, 0%, 64.7%)
CIE-LABlab(16.90, 31.47, -33.22)
CIE-LCHlch(16.90, 45.76, 313.45°)
OKLaboklab(29.75% 0.0659 -0.0944)
OKLCHoklch(29.75% 0.115 304.9)
XYZxyz(3.9551, 2.2808, 9.9028)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B175A #365A17
analogous
#1A175A #3B175A #5A1758
triadic
#3B175A #5A3B17 #175A3B
tetradic
#3B175A #5A1A17 #365A17 #17585A
square
#3B175A #5A1A17 #365A17 #17585A
split-complementary
#3B175A #585A17 #175A1A
monochromatic
#100618 #1B0B29 #3B175A #5B238B #7B30BB

Accessibility & contrast

On white

14.42
#3B175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B175A
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B175A#FFFFFF#000000##FFFFFF
##3B175A1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#002A59
Tritanopia (blue-blind)
#352636
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3b175a;
/* rgb */ color: rgb(59, 23, 90);
/* oklch */ color: oklch(29.7% 0.115 304.9);
Tailwind
colors: {
  custom: {
    50: '#745789',
    500: '#3b175a',
    950: '#000000',
  },
}
SCSS
$custom: #3b175a;
$custom-light: #745789;
$custom-dark: #000000;
JSON
{
  "hex": "#3b175a",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 272.239,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29749,
    "c": 0.1151,
    "h": 304.9
  },
  "luminance": 0.02281
}

Semantic roles & 50–950 ramp

primary
#3B175A
secondary
#63913C
accent
#E2458E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3B175A

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

Preview Lab → · Contrast checker → · Palette generator →

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