#3A1158#3A1158

#3A1158 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.121 H 306.4°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#3A1158
RGBrgb(58, 17, 88)
HSLhsl(275, 68%, 21%)
HSVhsv(275, 81%, 35%)
CMYKcmyk(34.1%, 80.7%, 0%, 65.5%)
CIE-LABlab(15.51, 33.72, -34.13)
CIE-LCHlch(15.51, 47.98, 314.65°)
OKLaboklab(28.68% 0.0715 -0.097)
OKLCHoklch(28.68% 0.121 306.4)
XYZxyz(3.7064, 2.0051, 9.4224)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1158 #2F5811
analogous
#161158 #3A1158 #581152
triadic
#3A1158 #583A11 #11583A
tetradic
#3A1158 #581611 #2F5811 #115258
square
#3A1158 #581611 #2F5811 #115258
split-complementary
#3A1158 #525811 #115816
monochromatic
#11051A #180725 #3A1158 #5C1B8B #7E25BF

Accessibility & contrast

On white

14.99
#3A1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#3A1158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1158
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1158#FFFFFF#000000##FFFFFF
##3A11581.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002757
Tritanopia (blue-blind)
#352234
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a1158;
/* rgb */ color: rgb(58, 17, 88);
/* oklch */ color: oklch(28.7% 0.121 306.4);
Tailwind
colors: {
  custom: {
    50: '#745488',
    500: '#3a1158',
    950: '#000000',
  },
}
SCSS
$custom: #3a1158;
$custom-light: #745488;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1158",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 274.648,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28682,
    "c": 0.12054,
    "h": 306.4
  },
  "luminance": 0.02005
}

Semantic roles & 50–950 ramp

primary
#3A1158
secondary
#5B9134
accent
#EA3D86
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1158

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

Preview Lab → · Contrast checker → · Palette generator →

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