#3A165D#3A165D

#3A165D is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.120 H 302.8°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#3A165D
RGBrgb(58, 22, 93)
HSLhsl(270, 62%, 23%)
HSVhsv(270, 76%, 36%)
CMYKcmyk(37.6%, 76.3%, 0%, 63.5%)
CIE-LABlab(16.81, 32.58, -35.37)
CIE-LCHlch(16.81, 48.09, 312.65°)
OKLaboklab(29.74% 0.065 -0.1007)
OKLCHoklch(29.74% 0.12 302.8)
XYZxyz(4.0072, 2.2637, 10.5796)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A165D #395D16
analogous
#17165D #3A165D #5D165C
triadic
#3A165D #5D3A16 #165D3A
tetradic
#3A165D #5D1716 #395D16 #165C5D
square
#3A165D #5D1716 #395D16 #165C5D
split-complementary
#3A165D #5C5D16 #165D17
monochromatic
#0F0619 #1B0A2C #3A165D #59228E #782DC0

Accessibility & contrast

On white

14.45
#3A165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A165D
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A165D#FFFFFF#000000##FFFFFF
##3A165D1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#332738
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a165d;
/* rgb */ color: rgb(58, 22, 93);
/* oklch */ color: oklch(29.7% 0.120 302.8);
Tailwind
colors: {
  custom: {
    50: '#74578b',
    500: '#3a165d',
    950: '#000000',
  },
}
SCSS
$custom: #3a165d;
$custom-light: #74578b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a165d",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 270.423,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29737,
    "c": 0.11986,
    "h": 302.8
  },
  "luminance": 0.02264
}

Semantic roles & 50–950 ramp

primary
#3A165D
secondary
#67943B
accent
#E54393
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A165D

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

Preview Lab → · Contrast checker → · Palette generator →

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