#3A1968#3A1968

#3A1968 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.129 H 297.3°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#3A1968
RGBrgb(58, 25, 104)
HSLhsl(265, 61%, 25%)
HSVhsv(265, 76%, 41%)
CMYKcmyk(44.2%, 76%, 0%, 59.2%)
CIE-LABlab(18.34, 34.07, -40.16)
CIE-LCHlch(18.34, 52.67, 310.31°)
OKLaboklab(31.12% 0.0594 -0.1148)
OKLCHoklch(31.12% 0.129 297.3)
XYZxyz(4.5906, 2.5942, 13.3529)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1968 #476819
analogous
#192068 #3A1968 #611968
triadic
#3A1968 #683A19 #19683A
tetradic
#3A1968 #681920 #476819 #196861
square
#3A1968 #681920 #476819 #196861
split-complementary
#3A1968 #686119 #206819
monochromatic
#0E0619 #1E0D37 #3A1968 #562599 #7131CB

Accessibility & contrast

On white

13.83
#3A1968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1968
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1968#FFFFFF#000000##FFFFFF
##3A19681.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#2E2D3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a1968;
/* rgb */ color: rgb(58, 25, 104);
/* oklch */ color: oklch(31.1% 0.129 297.3);
Tailwind
colors: {
  custom: {
    50: '#755994',
    500: '#3a1968',
    950: '#000000',
  },
}
SCSS
$custom: #3a1968;
$custom-light: #755994;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1968",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 265.063,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3112,
    "c": 0.12925,
    "h": 297.3
  },
  "luminance": 0.02594
}

Semantic roles & 50–950 ramp

primary
#3A1968
secondary
#769E3F
accent
#E443A1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3A1968

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

Preview Lab → · Contrast checker → · Palette generator →

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