#3A135E#3A135E

#3A135E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.125 H 303.0°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#3A135E
RGBrgb(58, 19, 94)
HSLhsl(271, 66%, 22%)
HSVhsv(271, 80%, 37%)
CMYKcmyk(38.3%, 79.8%, 0%, 63.1%)
CIE-LABlab(16.37, 34.35, -36.76)
CIE-LCHlch(16.37, 50.31, 313.06°)
OKLaboklab(29.45% 0.068 -0.1048)
OKLCHoklch(29.45% 0.125 303)
XYZxyz(3.9977, 2.1734, 10.7964)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A135E #375E13
analogous
#14135E #3A135E #5E135D
triadic
#3A135E #5E3A13 #135E3A
tetradic
#3A135E #5E1413 #375E13 #135D5E
square
#3A135E #5E1413 #375E13 #135D5E
split-complementary
#3A135E #5D5E13 #135E14
monochromatic
#100519 #1B092B #3A135E #591D91 #7928C4

Accessibility & contrast

On white

14.64
#3A135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3A135E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A135E
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A135E#FFFFFF#000000##FFFFFF
##3A135E1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#332637
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a135e;
/* rgb */ color: rgb(58, 19, 94);
/* oklch */ color: oklch(29.5% 0.125 303.0);
Tailwind
colors: {
  custom: {
    50: '#74558c',
    500: '#3a135e',
    950: '#000000',
  },
}
SCSS
$custom: #3a135e;
$custom-light: #74558c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a135e",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 271.2,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29452,
    "c": 0.1249,
    "h": 303
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#3A135E
secondary
#649637
accent
#E93F90
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A135E

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

Preview Lab → · Contrast checker → · Palette generator →

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