#3A145C#3A145C

#3A145C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.121 H 303.8°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#3A145C
RGBrgb(58, 20, 92)
HSLhsl(272, 64%, 22%)
HSVhsv(272, 78%, 36%)
CMYKcmyk(37%, 78.3%, 0%, 63.9%)
CIE-LABlab(16.37, 33.33, -35.43)
CIE-LCHlch(16.37, 48.64, 313.25°)
OKLaboklab(29.39% 0.0674 -0.1009)
OKLCHoklch(29.39% 0.121 303.8)
XYZxyz(3.9264, 2.1726, 10.3356)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A145C #365C14
analogous
#16145C #3A145C #5C145A
triadic
#3A145C #5C3A14 #145C3A
tetradic
#3A145C #5C1614 #365C14 #145A5C
square
#3A145C #5C1614 #365C14 #145A5C
split-complementary
#3A145C #5A5C14 #145C16
monochromatic
#100519 #1A092A #3A145C #5A1F8E #792AC1

Accessibility & contrast

On white

14.64
#3A145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A145C
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A145C#FFFFFF#000000##FFFFFF
##3A145C1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a145c;
/* rgb */ color: rgb(58, 20, 92);
/* oklch */ color: oklch(29.4% 0.121 303.8);
Tailwind
colors: {
  custom: {
    50: '#74568b',
    500: '#3a145c',
    950: '#000000',
  },
}
SCSS
$custom: #3a145c;
$custom-light: #74568b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a145c",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 271.667,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29394,
    "c": 0.12132,
    "h": 303.8
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#3A145C
secondary
#639438
accent
#E7418F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A145C

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

Preview Lab → · Contrast checker → · Palette generator →

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