#3A1875#3A1875

#3A1875 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.146 H 292.9°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#3A1875
RGBrgb(58, 24, 117)
HSLhsl(262, 66%, 28%)
HSVhsv(262, 79%, 46%)
CMYKcmyk(50.4%, 79.5%, 0%, 54.1%)
CIE-LABlab(19.38, 38.30, -46.90)
CIE-LCHlch(19.38, 60.55, 309.24°)
OKLaboklab(32.23% 0.0569 -0.1346)
OKLCHoklch(32.23% 0.146 292.9)
XYZxyz(5.2815, 2.8370, 17.0955)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1875 #537518
analogous
#182575 #3A1875 #681875
triadic
#3A1875 #753A18 #18753A
tetradic
#3A1875 #751825 #537518 #187568
square
#3A1875 #751825 #537518 #187568
split-complementary
#3A1875 #756818 #257518
monochromatic
#0D0519 #210E42 #3A1875 #5322A8 #6E32D5

Accessibility & contrast

On white

13.40
#3A1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3A1875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1875
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1875#FFFFFF#000000##FFFFFF
##3A18751.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#273246
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1875;
/* rgb */ color: rgb(58, 24, 117);
/* oklch */ color: oklch(32.2% 0.146 292.9);
Tailwind
colors: {
  custom: {
    50: '#77599e',
    500: '#3a1875',
    950: '#000000',
  },
}
SCSS
$custom: #3a1875;
$custom-light: #77599e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1875",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 261.935,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32229,
    "c": 0.14611,
    "h": 292.9
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#3A1875
secondary
#83AA3F
accent
#E93FAB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1875

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

Preview Lab → · Contrast checker → · Palette generator →

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