#3A1D88#3A1D88

#3A1D88 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.164 H 286.8°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#3A1D88
RGBrgb(58, 29, 136)
HSLhsl(256, 65%, 32%)
HSVhsv(256, 79%, 53%)
CMYKcmyk(57.4%, 78.7%, 0%, 46.7%)
CIE-LABlab(22.14, 41.38, -54.41)
CIE-LCHlch(22.14, 68.36, 307.25°)
OKLaboklab(34.74% 0.0472 -0.1566)
OKLCHoklch(34.74% 0.164 286.8)
XYZxyz(6.6269, 3.5555, 23.6249)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D88 #6B881D
analogous
#1D3588 #3A1D88 #701D88
triadic
#3A1D88 #883A1D #1D883A
tetradic
#3A1D88 #881D35 #6B881D #1D8870
square
#3A1D88 #881D35 #6B881D #1D8870
split-complementary
#3A1D88 #88701D #35881D
monochromatic
#0F0723 #241256 #3A1D88 #5028BA #6F48D8

Accessibility & contrast

On white

12.27
#3A1D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3A1D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D88
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D88#FFFFFF#000000##FFFFFF
##3A1D881.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#163C52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a1d88;
/* rgb */ color: rgb(58, 29, 136);
/* oklch */ color: oklch(34.7% 0.164 286.8);
Tailwind
colors: {
  custom: {
    50: '#7a5dac',
    500: '#3a1d88',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d88;
$custom-light: #7a5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d88",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 256.262,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3474,
    "c": 0.1636,
    "h": 286.8
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#3A1D88
secondary
#9BBA47
accent
#E840BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1D88

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

Preview Lab → · Contrast checker → · Palette generator →

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