#3A0F58#3A0F58

#3A0F58 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.123 H 306.7°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#3A0F58
RGBrgb(58, 15, 88)
HSLhsl(275, 71%, 20%)
HSVhsv(275, 83%, 35%)
CMYKcmyk(34.1%, 83%, 0%, 65.5%)
CIE-LABlab(15.20, 34.62, -34.64)
CIE-LCHlch(15.20, 48.97, 314.98°)
OKLaboklab(28.46% 0.0735 -0.0985)
OKLCHoklch(28.46% 0.123 306.7)
XYZxyz(3.6768, 1.9458, 9.4125)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F58 #2D580F
analogous
#150F58 #3A0F58 #580F52
triadic
#3A0F58 #583A0F #0F583A
tetradic
#3A0F58 #58150F #2D580F #0F5258
square
#3A0F58 #58150F #2D580F #0F5258
split-complementary
#3A0F58 #52580F #0F5815
monochromatic
#11041A #180624 #3A0F58 #5C188C #7F21C1

Accessibility & contrast

On white

15.12
#3A0F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0F58
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F58#FFFFFF#000000##FFFFFF
##3A0F581.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#352133
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a0f58;
/* rgb */ color: rgb(58, 15, 88);
/* oklch */ color: oklch(28.5% 0.123 306.7);
Tailwind
colors: {
  custom: {
    50: '#745388',
    500: '#3a0f58',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f58;
$custom-light: #745388;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f58",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 88
  },
  "hsl": {
    "h": 275.342,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28461,
    "c": 0.12294,
    "h": 306.7
  },
  "luminance": 0.01946
}

Semantic roles & 50–950 ramp

primary
#3A0F58
secondary
#599231
accent
#EE3A84
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A0F58

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

Preview Lab → · Contrast checker → · Palette generator →

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