#3A206C#3A206C

#3A206C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.125 H 294.0°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#3A206C
RGBrgb(58, 32, 108)
HSLhsl(261, 54%, 27%)
HSVhsv(261, 70%, 42%)
CMYKcmyk(46.3%, 70.4%, 0%, 57.6%)
CIE-LABlab(20.10, 31.32, -39.90)
CIE-LCHlch(20.10, 50.72, 308.13°)
OKLaboklab(32.49% 0.0509 -0.1141)
OKLCHoklch(32.49% 0.125 294)
XYZxyz(4.9675, 3.0151, 14.5047)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A206C #526C20
analogous
#202C6C #3A206C #60206C
triadic
#3A206C #6C3A20 #206C3A
tetradic
#3A206C #6C202C #526C20 #206C60
square
#3A206C #6C202C #526C20 #206C60
split-complementary
#3A206C #6C6020 #2C6C20
monochromatic
#0D0718 #21123D #3A206C #532E9B #6E40C6

Accessibility & contrast

On white

13.10
#3A206C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3A206C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A206C
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A206C#FFFFFF#000000##FFFFFF
##3A206C1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#2C3243
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a206c;
/* rgb */ color: rgb(58, 32, 108);
/* oklch */ color: oklch(32.5% 0.125 294.0);
Tailwind
colors: {
  custom: {
    50: '#755d97',
    500: '#3a206c',
    950: '#000000',
  },
}
SCSS
$custom: #3a206c;
$custom-light: #755d97;
$custom-dark: #000000;
JSON
{
  "hex": "#3a206c",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 108
  },
  "hsl": {
    "h": 260.526,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32489,
    "c": 0.1249,
    "h": 294
  },
  "luminance": 0.03015
}

Semantic roles & 50–950 ramp

primary
#3A206C
secondary
#82A048
accent
#DE4AAB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3A206C

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

Preview Lab → · Contrast checker → · Palette generator →

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