#3A184C#3A184C

#3A184C is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.096 H 312.0°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#3A184C
RGBrgb(58, 24, 76)
HSLhsl(279, 52%, 20%)
HSVhsv(279, 68%, 30%)
CMYKcmyk(23.7%, 68.4%, 0%, 70.2%)
CIE-LABlab(15.87, 26.96, -25.39)
CIE-LCHlch(15.87, 37.04, 316.73°)
OKLaboklab(28.64% 0.0643 -0.0714)
OKLCHoklch(28.64% 0.096 312)
XYZxyz(3.3758, 2.0747, 7.0587)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A184C #2A4C18
analogous
#20184C #3A184C #4C1844
triadic
#3A184C #4C3A18 #184C3A
tetradic
#3A184C #4C2018 #2A4C18 #18444C
square
#3A184C #4C2018 #2A4C18 #18444C
split-complementary
#3A184C #444C18 #184C20
monochromatic
#120717 #17091D #3A184C #5D277B #8135A9

Accessibility & contrast

On white

14.84
#3A184C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3A184C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A184C
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A184C#FFFFFF#000000##FFFFFF
##3A184C1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04264E
Deuteranopia (green-blind)
#14284B
Tritanopia (blue-blind)
#38222F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a184c;
/* rgb */ color: rgb(58, 24, 76);
/* oklch */ color: oklch(28.6% 0.096 312.0);
Tailwind
colors: {
  custom: {
    50: '#72577e',
    500: '#3a184c',
    950: '#000000',
  },
}
SCSS
$custom: #3a184c;
$custom-light: #72577e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a184c",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 76
  },
  "hsl": {
    "h": 279.231,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28639,
    "c": 0.09611,
    "h": 312
  },
  "luminance": 0.02075
}

Semantic roles & 50–950 ramp

primary
#3A184C
secondary
#55833D
accent
#DB4C7E
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A184C

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

Preview Lab → · Contrast checker → · Palette generator →

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