#3A1850#3A1850

#3A1850 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.101 H 309.4°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#3A1850
RGBrgb(58, 24, 80)
HSLhsl(276, 54%, 20%)
HSVhsv(276, 70%, 31%)
CMYKcmyk(27.5%, 70%, 0%, 68.6%)
CIE-LABlab(16.17, 28.00, -27.65)
CIE-LCHlch(16.17, 39.36, 315.36°)
OKLaboklab(28.94% 0.0642 -0.0781)
OKLCHoklch(28.94% 0.101 309.4)
XYZxyz(3.5192, 2.1321, 7.8140)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1850 #2E5018
analogous
#1E1850 #3A1850 #50184A
triadic
#3A1850 #503A18 #18503A
tetradic
#3A1850 #501E18 #2E5018 #184A50
square
#3A1850 #501E18 #2E5018 #184A50
split-complementary
#3A1850 #4A5018 #18501E
monochromatic
#110718 #180A21 #3A1850 #5C267F #7E34AE

Accessibility & contrast

On white

14.72
#3A1850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1850
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1850#FFFFFF#000000##FFFFFF
##3A18501.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002752
Deuteranopia (green-blind)
#10294F
Tritanopia (blue-blind)
#372331
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a1850;
/* rgb */ color: rgb(58, 24, 80);
/* oklch */ color: oklch(28.9% 0.101 309.4);
Tailwind
colors: {
  custom: {
    50: '#725781',
    500: '#3a1850',
    950: '#000000',
  },
}
SCSS
$custom: #3a1850;
$custom-light: #725781;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1850",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 276.429,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28943,
    "c": 0.10104,
    "h": 309.4
  },
  "luminance": 0.02132
}

Semantic roles & 50–950 ramp

primary
#3A1850
secondary
#5A873D
accent
#DD4B84
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A1850

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

Preview Lab → · Contrast checker → · Palette generator →

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