#3A165B#3A165B

#3A165B is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.6% C 0.117 H 303.8°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#3A165B
RGBrgb(58, 22, 91)
HSLhsl(271, 61%, 22%)
HSVhsv(271, 76%, 36%)
CMYKcmyk(36.3%, 75.8%, 0%, 64.3%)
CIE-LABlab(16.64, 32.04, -34.31)
CIE-LCHlch(16.64, 46.94, 313.04°)
OKLaboklab(29.56% 0.0654 -0.0976)
OKLCHoklch(29.56% 0.117 303.8)
XYZxyz(3.9197, 2.2287, 10.1192)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A165B #375B16
analogous
#17165B #3A165B #5B165A
triadic
#3A165B #5B3A16 #165B3A
tetradic
#3A165B #5B1716 #375B16 #165A5B
square
#3A165B #5B1716 #375B16 #165A5B
split-complementary
#3A165B #5A5B16 #165B17
monochromatic
#100619 #1B0A2A #3A165B #59228C #792EBE

Accessibility & contrast

On white

14.52
#3A165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3A165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A165B
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A165B#FFFFFF#000000##FFFFFF
##3A165B1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#342636
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a165b;
/* rgb */ color: rgb(58, 22, 91);
/* oklch */ color: oklch(29.6% 0.117 303.8);
Tailwind
colors: {
  custom: {
    50: '#74578a',
    500: '#3a165b',
    950: '#000000',
  },
}
SCSS
$custom: #3a165b;
$custom-light: #74578a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a165b",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 271.304,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29563,
    "c": 0.11746,
    "h": 303.8
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#3A165B
secondary
#64923B
accent
#E44490
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A165B

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

Preview Lab → · Contrast checker → · Palette generator →

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