#3A165A#3A165A

#3A165A is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.5% C 0.116 H 304.3°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#3A165A
RGBrgb(58, 22, 90)
HSLhsl(272, 61%, 22%)
HSVhsv(272, 76%, 35%)
CMYKcmyk(35.6%, 75.6%, 0%, 64.7%)
CIE-LABlab(16.56, 31.77, -33.77)
CIE-LCHlch(16.56, 46.37, 313.25°)
OKLaboklab(29.48% 0.0655 -0.096)
OKLCHoklch(29.48% 0.116 304.3)
XYZxyz(3.8769, 2.2116, 9.8935)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A165A #365A16
analogous
#18165A #3A165A #5A1658
triadic
#3A165A #5A3A16 #165A3A
tetradic
#3A165A #5A1816 #365A16 #16585A
square
#3A165A #5A1816 #365A16 #16585A
split-complementary
#3A165A #585A16 #165A18
monochromatic
#100619 #1A0A29 #3A165A #5A228B #792EBC

Accessibility & contrast

On white

14.56
#3A165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#3A165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A165A
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A165A#FFFFFF#000000##FFFFFF
##3A165A1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#342636
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a165a;
/* rgb */ color: rgb(58, 22, 90);
/* oklch */ color: oklch(29.5% 0.116 304.3);
Tailwind
colors: {
  custom: {
    50: '#745789',
    500: '#3a165a',
    950: '#000000',
  },
}
SCSS
$custom: #3a165a;
$custom-light: #745789;
$custom-dark: #000000;
JSON
{
  "hex": "#3a165a",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 271.765,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29477,
    "c": 0.11626,
    "h": 304.3
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#3A165A
secondary
#63913B
accent
#E4448F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A165A

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

Preview Lab → · Contrast checker → · Palette generator →

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