#3A185A#3A185A

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

Color values

HEX#3A185A
RGBrgb(58, 24, 90)
HSLhsl(271, 58%, 22%)
HSVhsv(271, 73%, 35%)
CMYKcmyk(35.6%, 73.3%, 0%, 64.7%)
CIE-LABlab(16.95, 30.69, -33.15)
CIE-LCHlch(16.95, 45.18, 312.80°)
OKLaboklab(29.75% 0.0631 -0.0942)
OKLCHoklch(29.75% 0.113 303.8)
XYZxyz(3.9166, 2.2910, 9.9067)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A185A #385A18
analogous
#19185A #3A185A #5A1859
triadic
#3A185A #5A3A18 #185A3A
tetradic
#3A185A #5A1918 #385A18 #18595A
square
#3A185A #5A1918 #385A18 #18595A
split-complementary
#3A185A #595A18 #185A19
monochromatic
#100618 #1B0B2A #3A185A #59258A #7832BB

Accessibility & contrast

On white

14.40
#3A185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A185A
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A185A#FFFFFF#000000##FFFFFF
##3A185A1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a185a;
/* rgb */ color: rgb(58, 24, 90);
/* oklch */ color: oklch(29.8% 0.113 303.8);
Tailwind
colors: {
  custom: {
    50: '#735889',
    500: '#3a185a',
    950: '#000000',
  },
}
SCSS
$custom: #3a185a;
$custom-light: #735889;
$custom-dark: #000000;
JSON
{
  "hex": "#3a185a",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 270.909,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29752,
    "c": 0.1134,
    "h": 303.8
  },
  "luminance": 0.02291
}

Semantic roles & 50–950 ramp

primary
#3A185A
secondary
#66913D
accent
#E14792
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A185A

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

Preview Lab → · Contrast checker → · Palette generator →

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