#3A185C#3A185C

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

Color values

HEX#3A185C
RGBrgb(58, 24, 92)
HSLhsl(270, 59%, 23%)
HSVhsv(270, 74%, 36%)
CMYKcmyk(37%, 73.9%, 0%, 63.9%)
CIE-LABlab(17.11, 31.24, -34.22)
CIE-LCHlch(17.11, 46.34, 312.39°)
OKLaboklab(29.92% 0.0628 -0.0974)
OKLCHoklch(29.92% 0.116 302.8)
XYZxyz(4.0029, 2.3255, 10.3611)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A185C #3A5C18
analogous
#18185C #3A185C #5C185C
triadic
#3A185C #5C3A18 #185C3A
tetradic
#3A185C #5C1818 #3A5C18 #185C5C
square
#3A185C #5C1818 #3A5C18 #185C5C
split-complementary
#3A185C #5C5C18 #185C18
monochromatic
#0F0618 #1B0B2B #3A185C #59258D #7731BD

Accessibility & contrast

On white

14.33
#3A185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A185C
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A185C#FFFFFF#000000##FFFFFF
##3A185C1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#332838
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a185c;
/* rgb */ color: rgb(58, 24, 92);
/* oklch */ color: oklch(29.9% 0.116 302.8);
Tailwind
colors: {
  custom: {
    50: '#74588b',
    500: '#3a185c',
    950: '#000000',
  },
}
SCSS
$custom: #3a185c;
$custom-light: #74588b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a185c",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 270,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29922,
    "c": 0.11586,
    "h": 302.8
  },
  "luminance": 0.02326
}

Semantic roles & 50–950 ramp

primary
#3A185C
secondary
#68933D
accent
#E24694
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A185C

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

Preview Lab → · Contrast checker → · Palette generator →

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