#3A1273#3A1273

#3A1273 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.150 H 294.6°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#3A1273
RGBrgb(58, 18, 115)
HSLhsl(265, 73%, 26%)
HSVhsv(265, 84%, 45%)
CMYKcmyk(49.6%, 84.3%, 0%, 54.9%)
CIE-LABlab(18.23, 40.48, -47.49)
CIE-LCHlch(18.23, 62.40, 310.44°)
OKLaboklab(31.37% 0.0624 -0.1363)
OKLCHoklch(31.37% 0.15 294.6)
XYZxyz(5.0549, 2.5698, 16.4460)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1273 #4B7312
analogous
#121B73 #3A1273 #6A1273
triadic
#3A1273 #733A12 #12733A
tetradic
#3A1273 #73121B #4B7312 #12736A
square
#3A1273 #73121B #4B7312 #12736A
split-complementary
#3A1273 #736A12 #1B7312
monochromatic
#0D041A #1F0A3E #3A1273 #551AA8 #6F23DD

Accessibility & contrast

On white

13.87
#3A1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3A1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1273
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1273#FFFFFF#000000##FFFFFF
##3A12731.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#292E43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1273;
/* rgb */ color: rgb(58, 18, 115);
/* oklch */ color: oklch(31.4% 0.150 294.6);
Tailwind
colors: {
  custom: {
    50: '#77569c',
    500: '#3a1273',
    950: '#000000',
  },
}
SCSS
$custom: #3a1273;
$custom-light: #77569c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1273",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 264.742,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31369,
    "c": 0.14987,
    "h": 294.6
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#3A1273
secondary
#7AAA37
accent
#F038A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1273

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

Preview Lab → · Contrast checker → · Palette generator →

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