#3A0F4B#3A0F4B

#3A0F4B is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.4% C 0.109 H 314.5°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#3A0F4B
RGBrgb(58, 15, 75)
HSLhsl(283, 67%, 18%)
HSVhsv(283, 80%, 29%)
CMYKcmyk(22.7%, 80%, 0%, 70.6%)
CIE-LABlab(14.11, 31.41, -27.53)
CIE-LCHlch(14.11, 41.77, 318.77°)
OKLaboklab(27.35% 0.0762 -0.0776)
OKLCHoklch(27.35% 0.109 314.5)
XYZxyz(3.1855, 1.7493, 6.8251)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F4B #204B0F
analogous
#1C0F4B #3A0F4B #4B0F3E
triadic
#3A0F4B #4B3A0F #0F4B3A
tetradic
#3A0F4B #4B1C0F #204B0F #0F3E4B
square
#3A0F4B #4B1C0F #204B0F #0F3E4B
split-complementary
#3A0F4B #3E4B0F #0F4B1C
monochromatic
#14051A #14051A #3A0F4B #61197E #8923B1

Accessibility & contrast

On white

15.56
#3A0F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#3A0F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F4B
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F4B#FFFFFF#000000##FFFFFF
##3A0F4B1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#0C254A
Tritanopia (blue-blind)
#381C2C
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0f4b;
/* rgb */ color: rgb(58, 15, 75);
/* oklch */ color: oklch(27.4% 0.109 314.5);
Tailwind
colors: {
  custom: {
    50: '#73527e',
    500: '#3a0f4b',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f4b;
$custom-light: #73527e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f4b",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 283,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2735,
    "c": 0.10876,
    "h": 314.5
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#3A0F4B
secondary
#498530
accent
#EA3E6F
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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