#3A2697#3A2697

#3A2697 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.173 H 282.2°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#3A2697
RGBrgb(58, 38, 151)
HSLhsl(251, 60%, 37%)
HSVhsv(251, 75%, 59%)
CMYKcmyk(61.6%, 74.8%, 0%, 40.8%)
CIE-LABlab(25.32, 41.22, -58.50)
CIE-LCHlch(25.32, 71.56, 305.17°)
OKLaboklab(37.43% 0.0366 -0.1686)
OKLCHoklch(37.43% 0.173 282.2)
XYZxyz(8.0222, 4.5196, 29.7218)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2697 #839726
analogous
#264B97 #3A2697 #722697
triadic
#3A2697 #973A26 #26973A
tetradic
#3A2697 #97264B #839726 #269772
square
#3A2697 #97264B #839726 #269772
split-complementary
#3A2697 #977226 #4B9726
monochromatic
#140D35 #271A66 #3A2697 #4D32C8 #7560D7

Accessibility & contrast

On white

11.03
#3A2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3A2697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2697
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2697#FFFFFF#000000##FFFFFF
##3A26971.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a2697;
/* rgb */ color: rgb(58, 38, 151);
/* oklch */ color: oklch(37.4% 0.173 282.2);
Tailwind
colors: {
  custom: {
    50: '#7c63b7',
    500: '#3a2697',
    950: '#000000',
  },
}
SCSS
$custom: #3a2697;
$custom-light: #7c63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2697",
  "rgb": {
    "r": 58,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 250.619,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37429,
    "c": 0.17256,
    "h": 282.2
  },
  "luminance": 0.0452
}

Semantic roles & 50–950 ramp

primary
#3A2697
secondary
#ABBC5C
accent
#E345C7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3A2697

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

Preview Lab → · Contrast checker → · Palette generator →

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