#3A0F60#3A0F60

#3A0F60 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.132 H 302.8°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#3A0F60
RGBrgb(58, 15, 96)
HSLhsl(272, 73%, 22%)
HSVhsv(272, 84%, 38%)
CMYKcmyk(39.6%, 84.4%, 0%, 62.4%)
CIE-LABlab(15.93, 36.67, -38.81)
CIE-LCHlch(15.93, 53.39, 313.38°)
OKLaboklab(29.2% 0.0713 -0.1108)
OKLCHoklch(29.2% 0.132 302.8)
XYZxyz(4.0266, 2.0857, 11.2545)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F60 #35600F
analogous
#120F60 #3A0F60 #600F5E
triadic
#3A0F60 #603A0F #0F603A
tetradic
#3A0F60 #60120F #35600F #0F5E60
square
#3A0F60 #60120F #35600F #0F5E60
split-complementary
#3A0F60 #5E600F #0F6012
monochromatic
#10041A #1A072B #3A0F60 #5A1795 #7A20CA

Accessibility & contrast

On white

14.82
#3A0F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3A0F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F60
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F60#FFFFFF#000000##FFFFFF
##3A0F601.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#322538
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a0f60;
/* rgb */ color: rgb(58, 15, 96);
/* oklch */ color: oklch(29.2% 0.132 302.8);
Tailwind
colors: {
  custom: {
    50: '#75538e',
    500: '#3a0f60',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f60;
$custom-light: #75538e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f60",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 96
  },
  "hsl": {
    "h": 271.852,
    "s": 72.973,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29199,
    "c": 0.13171,
    "h": 302.8
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#3A0F60
secondary
#629932
accent
#F0388E
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A0F60

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

Preview Lab → · Contrast checker → · Palette generator →

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