#3A115A#3A115A

#3A115A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.123 H 305.3°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#3A115A
RGBrgb(58, 17, 90)
HSLhsl(274, 68%, 21%)
HSVhsv(274, 81%, 35%)
CMYKcmyk(35.6%, 81.1%, 0%, 64.7%)
CIE-LABlab(15.69, 34.24, -35.19)
CIE-LCHlch(15.69, 49.10, 314.21°)
OKLaboklab(28.86% 0.071 -0.1002)
OKLCHoklch(28.86% 0.123 305.3)
XYZxyz(3.7904, 2.0386, 9.8647)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A115A #315A11
analogous
#16115A #3A115A #5A1155
triadic
#3A115A #5A3A11 #115A3A
tetradic
#3A115A #5A1611 #315A11 #11555A
square
#3A115A #5A1611 #315A11 #11555A
split-complementary
#3A115A #555A11 #115A16
monochromatic
#11051A #190727 #3A115A #5B1B8D #7C24C1

Accessibility & contrast

On white

14.92
#3A115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3A115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A115A
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A115A#FFFFFF#000000##FFFFFF
##3A115A1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002759
Tritanopia (blue-blind)
#342335
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a115a;
/* rgb */ color: rgb(58, 17, 90);
/* oklch */ color: oklch(28.9% 0.123 305.3);
Tailwind
colors: {
  custom: {
    50: '#745489',
    500: '#3a115a',
    950: '#000000',
  },
}
SCSS
$custom: #3a115a;
$custom-light: #745489;
$custom-dark: #000000;
JSON
{
  "hex": "#3a115a",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 273.699,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2886,
    "c": 0.12279,
    "h": 305.3
  },
  "luminance": 0.02039
}

Semantic roles & 50–950 ramp

primary
#3A115A
secondary
#5E9334
accent
#EB3D89
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A115A

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

Preview Lab → · Contrast checker → · Palette generator →

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