#3A2085#3A2085

#3A2085 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.157 H 286.9°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#3A2085
RGBrgb(58, 32, 133)
HSLhsl(255, 61%, 32%)
HSVhsv(255, 76%, 52%)
CMYKcmyk(56.4%, 75.9%, 0%, 47.8%)
CIE-LABlab(22.39, 38.92, -52.12)
CIE-LCHlch(22.39, 65.05, 306.75°)
OKLaboklab(34.83% 0.0457 -0.1499)
OKLCHoklch(34.83% 0.157 286.9)
XYZxyz(6.4938, 3.6257, 22.5434)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2085 #6B8520
analogous
#203885 #3A2085 #6D2085
triadic
#3A2085 #853A20 #20853A
tetradic
#3A2085 #852038 #6B8520 #20856D
square
#3A2085 #852038 #6B8520 #20856D
split-complementary
#3A2085 #856D20 #388520
monochromatic
#0F0822 #241454 #3A2085 #502CB6 #6F4CD4

Accessibility & contrast

On white

12.17
#3A2085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3A2085 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2085
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2085#FFFFFF#000000##FFFFFF
##3A20851.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#1A3C51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2085;
/* rgb */ color: rgb(58, 32, 133);
/* oklch */ color: oklch(34.8% 0.157 286.9);
Tailwind
colors: {
  custom: {
    50: '#795ea9',
    500: '#3a2085',
    950: '#000000',
  },
}
SCSS
$custom: #3a2085;
$custom-light: #795ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2085",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 133
  },
  "hsl": {
    "h": 255.446,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34825,
    "c": 0.15675,
    "h": 286.9
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#3A2085
secondary
#9BB74A
accent
#E443BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2085

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

Preview Lab → · Contrast checker → · Palette generator →

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