#3A185E#3A185E

#3A185E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.118 H 301.9°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#3A185E
RGBrgb(58, 24, 94)
HSLhsl(269, 59%, 23%)
HSVhsv(269, 74%, 37%)
CMYKcmyk(38.3%, 74.5%, 0%, 63.1%)
CIE-LABlab(17.28, 31.80, -35.28)
CIE-LCHlch(17.28, 47.50, 312.02°)
OKLaboklab(30.09% 0.0625 -0.1005)
OKLCHoklch(30.09% 0.118 301.9)
XYZxyz(4.0915, 2.3609, 10.8277)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A185E #3C5E18
analogous
#18195E #3A185E #5D185E
triadic
#3A185E #5E3A18 #185E3A
tetradic
#3A185E #5E1819 #3C5E18 #185E5D
square
#3A185E #5E1819 #3C5E18 #185E5D
split-complementary
#3A185E #5E5D18 #195E18
monochromatic
#0F0618 #1C0C2D #3A185E #58248F #7631C0

Accessibility & contrast

On white

14.26
#3A185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A185E
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A185E#FFFFFF#000000##FFFFFF
##3A185E1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#322939
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a185e;
/* rgb */ color: rgb(58, 24, 94);
/* oklch */ color: oklch(30.1% 0.118 301.9);
Tailwind
colors: {
  custom: {
    50: '#74588c',
    500: '#3a185e',
    950: '#000000',
  },
}
SCSS
$custom: #3a185e;
$custom-light: #74588c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a185e",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 269.143,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30094,
    "c": 0.11832,
    "h": 301.9
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#3A185E
secondary
#6A943D
accent
#E34596
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A185E

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

Preview Lab → · Contrast checker → · Palette generator →

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