#3A1765#3A1765

#3A1765 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.128 H 299.0°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#3A1765
RGBrgb(58, 23, 101)
HSLhsl(267, 63%, 24%)
HSVhsv(267, 77%, 40%)
CMYKcmyk(42.6%, 77.2%, 0%, 60.4%)
CIE-LABlab(17.70, 34.27, -39.23)
CIE-LCHlch(17.70, 52.09, 311.14°)
OKLaboklab(30.58% 0.0622 -0.1121)
OKLCHoklch(30.58% 0.128 299)
XYZxyz(4.3997, 2.4519, 12.5509)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1765 #426517
analogous
#171B65 #3A1765 #611765
triadic
#3A1765 #653A17 #17653A
tetradic
#3A1765 #65171B #426517 #176561
square
#3A1765 #65171B #426517 #176561
split-complementary
#3A1765 #656117 #1B6517
monochromatic
#0E0619 #1D0C33 #3A1765 #572297 #732EC9

Accessibility & contrast

On white

14.09
#3A1765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3A1765 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1765
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1765#FFFFFF#000000##FFFFFF
##3A17651.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B67
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#302B3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a1765;
/* rgb */ color: rgb(58, 23, 101);
/* oklch */ color: oklch(30.6% 0.128 299.0);
Tailwind
colors: {
  custom: {
    50: '#755892',
    500: '#3a1765',
    950: '#000000',
  },
}
SCSS
$custom: #3a1765;
$custom-light: #755892;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1765",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 101
  },
  "hsl": {
    "h": 266.923,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30584,
    "c": 0.12816,
    "h": 299
  },
  "luminance": 0.02452
}

Semantic roles & 50–950 ramp

primary
#3A1765
secondary
#719B3C
accent
#E6429C
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1765

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

Preview Lab → · Contrast checker → · Palette generator →

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