#3A145B#3A145B

#3A145B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.120 H 304.2°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#3A145B
RGBrgb(58, 20, 91)
HSLhsl(272, 64%, 22%)
HSVhsv(272, 78%, 36%)
CMYKcmyk(36.3%, 78%, 0%, 64.3%)
CIE-LABlab(16.28, 33.06, -34.90)
CIE-LCHlch(16.28, 48.07, 313.45°)
OKLaboklab(29.3% 0.0676 -0.0993)
OKLCHoklch(29.3% 0.12 304.2)
XYZxyz(3.8830, 2.1552, 10.1069)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A145B #355B14
analogous
#17145B #3A145B #5B1459
triadic
#3A145B #5B3A14 #145B3A
tetradic
#3A145B #5B1714 #355B14 #14595B
square
#3A145B #5B1714 #355B14 #14595B
split-complementary
#3A145B #595B14 #145B17
monochromatic
#100619 #1A0929 #3A145B #5A1F8D #7A2ABF

Accessibility & contrast

On white

14.68
#3A145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3A145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A145B
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A145B#FFFFFF#000000##FFFFFF
##3A145B1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#342536
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a145b;
/* rgb */ color: rgb(58, 20, 91);
/* oklch */ color: oklch(29.3% 0.120 304.2);
Tailwind
colors: {
  custom: {
    50: '#74558a',
    500: '#3a145b',
    950: '#000000',
  },
}
SCSS
$custom: #3a145b;
$custom-light: #74558a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a145b",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 272.113,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29305,
    "c": 0.12015,
    "h": 304.2
  },
  "luminance": 0.02155
}

Semantic roles & 50–950 ramp

primary
#3A145B
secondary
#629338
accent
#E7418E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A145B

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

Preview Lab → · Contrast checker → · Palette generator →

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