#3A185B#3A185B

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

Color values

HEX#3A185B
RGBrgb(58, 24, 91)
HSLhsl(270, 58%, 23%)
HSVhsv(270, 74%, 36%)
CMYKcmyk(36.3%, 73.6%, 0%, 64.3%)
CIE-LABlab(17.03, 30.97, -33.69)
CIE-LCHlch(17.03, 45.76, 312.59°)
OKLaboklab(29.84% 0.063 -0.0958)
OKLCHoklch(29.84% 0.115 303.3)
XYZxyz(3.9594, 2.3081, 10.1324)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A185B #395B18
analogous
#19185B #3A185B #5B185A
triadic
#3A185B #5B3A18 #185B3A
tetradic
#3A185B #5B1918 #395B18 #185A5B
square
#3A185B #5B1918 #395B18 #185A5B
split-complementary
#3A185B #5A5B18 #185B19
monochromatic
#0F0618 #1B0B2B #3A185B #59258B #7832BC

Accessibility & contrast

On white

14.37
#3A185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A185B
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A185B#FFFFFF#000000##FFFFFF
##3A185B1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a185b;
/* rgb */ color: rgb(58, 24, 91);
/* oklch */ color: oklch(29.8% 0.115 303.3);
Tailwind
colors: {
  custom: {
    50: '#74588a',
    500: '#3a185b',
    950: '#000000',
  },
}
SCSS
$custom: #3a185b;
$custom-light: #74588a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a185b",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 270.448,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29836,
    "c": 0.11463,
    "h": 303.3
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#3A185B
secondary
#67923D
accent
#E14693
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A185B

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

Preview Lab → · Contrast checker → · Palette generator →

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