#3A165C#3A165C

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

Color values

HEX#3A165C
RGBrgb(58, 22, 92)
HSLhsl(271, 61%, 22%)
HSVhsv(271, 76%, 36%)
CMYKcmyk(37%, 76.1%, 0%, 63.9%)
CIE-LABlab(16.73, 32.31, -34.84)
CIE-LCHlch(16.73, 47.51, 312.84°)
OKLaboklab(29.65% 0.0652 -0.0992)
OKLCHoklch(29.65% 0.119 303.3)
XYZxyz(3.9631, 2.2461, 10.3479)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A165C #385C16
analogous
#17165C #3A165C #5C165B
triadic
#3A165C #5C3A16 #165C3A
tetradic
#3A165C #5C1716 #385C16 #165B5C
square
#3A165C #5C1716 #385C16 #165B5C
split-complementary
#3A165C #5B5C16 #165C17
monochromatic
#100619 #1B0A2B #3A165C #59228D #782EBF

Accessibility & contrast

On white

14.49
#3A165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A165C
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A165C#FFFFFF#000000##FFFFFF
##3A165C1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#00295B
Tritanopia (blue-blind)
#332737
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a165c;
/* rgb */ color: rgb(58, 22, 92);
/* oklch */ color: oklch(29.6% 0.119 303.3);
Tailwind
colors: {
  custom: {
    50: '#74578b',
    500: '#3a165c',
    950: '#000000',
  },
}
SCSS
$custom: #3a165c;
$custom-light: #74578b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a165c",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 270.857,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2965,
    "c": 0.11866,
    "h": 303.3
  },
  "luminance": 0.02246
}

Semantic roles & 50–950 ramp

primary
#3A165C
secondary
#66933B
accent
#E54392
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A165C

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

Preview Lab → · Contrast checker → · Palette generator →

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