#3A0F59#3A0F59

#3A0F59 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.124 H 306.2°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#3A0F59
RGBrgb(58, 15, 89)
HSLhsl(275, 71%, 20%)
HSVhsv(275, 83%, 35%)
CMYKcmyk(34.8%, 83.1%, 0%, 65.1%)
CIE-LABlab(15.29, 34.87, -35.17)
CIE-LCHlch(15.29, 49.53, 314.76°)
OKLaboklab(28.55% 0.0733 -0.1001)
OKLCHoklch(28.55% 0.124 306.2)
XYZxyz(3.7185, 1.9625, 9.6322)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F59 #2E590F
analogous
#150F59 #3A0F59 #590F53
triadic
#3A0F59 #593A0F #0F593A
tetradic
#3A0F59 #59150F #2E590F #0F5359
square
#3A0F59 #59150F #2E590F #0F5359
split-complementary
#3A0F59 #53590F #0F5915
monochromatic
#11041A #180625 #3A0F59 #5C188D #7E21C2

Accessibility & contrast

On white

15.08
#3A0F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3A0F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F59
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F59#FFFFFF#000000##FFFFFF
##3A0F591.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002658
Tritanopia (blue-blind)
#342234
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a0f59;
/* rgb */ color: rgb(58, 15, 89);
/* oklch */ color: oklch(28.6% 0.124 306.2);
Tailwind
colors: {
  custom: {
    50: '#745388',
    500: '#3a0f59',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f59;
$custom-light: #745388;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f59",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 89
  },
  "hsl": {
    "h": 274.865,
    "s": 71.154,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28551,
    "c": 0.12403,
    "h": 306.2
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#3A0F59
secondary
#5A9331
accent
#EE3A85
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3A0F59

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

Preview Lab → · Contrast checker → · Palette generator →

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