#3A1175#3A1175

#3A1175 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.153 H 294.1°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#3A1175
RGBrgb(58, 17, 117)
HSLhsl(265, 75%, 26%)
HSVhsv(265, 85%, 46%)
CMYKcmyk(50.4%, 85.5%, 0%, 54.1%)
CIE-LABlab(18.30, 41.44, -48.67)
CIE-LCHlch(18.30, 63.92, 310.41°)
OKLaboklab(31.48% 0.0624 -0.1397)
OKLCHoklch(31.48% 0.153 294.1)
XYZxyz(5.1554, 2.5846, 17.0534)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1175 #4C7511
analogous
#111A75 #3A1175 #6C1175
triadic
#3A1175 #753A11 #11753A
tetradic
#3A1175 #75111A #4C7511 #11756C
square
#3A1175 #75111A #4C7511 #11756C
split-complementary
#3A1175 #756C11 #1A7511
monochromatic
#0D041B #200940 #3A1175 #5419AA #6F22DF

Accessibility & contrast

On white

13.84
#3A1175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1175
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1175#FFFFFF#000000##FFFFFF
##3A11751.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.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: #3a1175;
/* rgb */ color: rgb(58, 17, 117);
/* oklch */ color: oklch(31.5% 0.153 294.1);
Tailwind
colors: {
  custom: {
    50: '#78569e',
    500: '#3a1175',
    950: '#000000',
  },
}
SCSS
$custom: #3a1175;
$custom-light: #78569e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1175",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 264.6,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31477,
    "c": 0.15301,
    "h": 294.1
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#3A1175
secondary
#7CAC36
accent
#F137A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3A1175

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

Preview Lab → · Contrast checker → · Palette generator →

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