#3A0E56#3A0E56

#3A0E56 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.122 H 308.0°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#3A0E56
RGBrgb(58, 14, 86)
HSLhsl(277, 72%, 20%)
HSVhsv(277, 84%, 34%)
CMYKcmyk(32.6%, 83.7%, 0%, 66.3%)
CIE-LABlab(14.88, 34.54, -33.82)
CIE-LCHlch(14.88, 48.34, 315.61°)
OKLaboklab(28.18% 0.075 -0.0961)
OKLCHoklch(28.18% 0.122 308)
XYZxyz(3.5813, 1.8856, 8.9776)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0E56 #2A560E
analogous
#160E56 #3A0E56 #560E4E
triadic
#3A0E56 #563A0E #0E563A
tetradic
#3A0E56 #56160E #2A560E #0E4E56
square
#3A0E56 #56160E #2A560E #0E4E56
split-complementary
#3A0E56 #4E560E #0E5616
monochromatic
#12041A #170521 #3A0E56 #5D178B #811FBF

Accessibility & contrast

On white

15.25
#3A0E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3A0E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0E56
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0E56#FFFFFF#000000##FFFFFF
##3A0E561.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#352032
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a0e56;
/* rgb */ color: rgb(58, 14, 86);
/* oklch */ color: oklch(28.2% 0.122 308.0);
Tailwind
colors: {
  custom: {
    50: '#745286',
    500: '#3a0e56',
    950: '#000000',
  },
}
SCSS
$custom: #3a0e56;
$custom-light: #745286;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0e56",
  "rgb": {
    "r": 58,
    "g": 14,
    "b": 86
  },
  "hsl": {
    "h": 276.667,
    "s": 72,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28177,
    "c": 0.12191,
    "h": 308
  },
  "luminance": 0.01886
}

Semantic roles & 50–950 ramp

primary
#3A0E56
secondary
#559030
accent
#EF3980
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #3A0E56

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

Preview Lab → · Contrast checker → · Palette generator →

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