#3A1275#3A1275

#3A1275 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.152 H 293.9°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#3A1275
RGBrgb(58, 18, 117)
HSLhsl(264, 73%, 26%)
HSVhsv(264, 85%, 46%)
CMYKcmyk(50.4%, 84.6%, 0%, 54.1%)
CIE-LABlab(18.44, 41.03, -48.44)
CIE-LCHlch(18.44, 63.48, 310.26°)
OKLaboklab(31.57% 0.0617 -0.1391)
OKLCHoklch(31.57% 0.152 293.9)
XYZxyz(5.1712, 2.6163, 17.0587)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1275 #4D7512
analogous
#121C75 #3A1275 #6C1275
triadic
#3A1275 #753A12 #12753A
tetradic
#3A1275 #75121C #4D7512 #12756C
square
#3A1275 #75121C #4D7512 #12756C
split-complementary
#3A1275 #756C12 #1C7512
monochromatic
#0D041B #200A40 #3A1275 #541AAA #6F24DD

Accessibility & contrast

On white

13.78
#3A1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3A1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1275
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1275#FFFFFF#000000##FFFFFF
##3A12751.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#282F44
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a1275;
/* rgb */ color: rgb(58, 18, 117);
/* oklch */ color: oklch(31.6% 0.152 293.9);
Tailwind
colors: {
  custom: {
    50: '#78569e',
    500: '#3a1275',
    950: '#000000',
  },
}
SCSS
$custom: #3a1275;
$custom-light: #78569e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1275",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 264.242,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31573,
    "c": 0.15212,
    "h": 293.9
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#3A1275
secondary
#7DAC37
accent
#F038A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1275

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

Preview Lab → · Contrast checker → · Palette generator →

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