#3A165E#3A165E

#3A165E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.121 H 302.3°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#3A165E
RGBrgb(58, 22, 94)
HSLhsl(270, 62%, 23%)
HSVhsv(270, 77%, 37%)
CMYKcmyk(38.3%, 76.6%, 0%, 63.1%)
CIE-LABlab(16.90, 32.85, -35.90)
CIE-LCHlch(16.90, 48.66, 312.46°)
OKLaboklab(29.83% 0.0648 -0.1023)
OKLCHoklch(29.83% 0.121 302.3)
XYZxyz(4.0517, 2.2815, 10.8144)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A165E #3A5E16
analogous
#16165E #3A165E #5E165E
triadic
#3A165E #5E3A16 #165E3A
tetradic
#3A165E #5E1616 #3A5E16 #165E5E
square
#3A165E #5E1616 #3A5E16 #165E5E
split-complementary
#3A165E #5E5E16 #165E16
monochromatic
#0F0619 #1B0A2C #3A165E #592290 #772DC1

Accessibility & contrast

On white

14.42
#3A165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3A165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A165E
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A165E#FFFFFF#000000##FFFFFF
##3A165E1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#322738
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a165e;
/* rgb */ color: rgb(58, 22, 94);
/* oklch */ color: oklch(29.8% 0.121 302.3);
Tailwind
colors: {
  custom: {
    50: '#74578c',
    500: '#3a165e',
    950: '#000000',
  },
}
SCSS
$custom: #3a165e;
$custom-light: #74578c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a165e",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 270,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29825,
    "c": 0.12105,
    "h": 302.3
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

primary
#3A165E
secondary
#68953B
accent
#E54394
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A165E

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

Preview Lab → · Contrast checker → · Palette generator →

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