#3A175E#3A175E

#3A175E is a dark, moderate violet. Relative luminance 0.023; OKLCH L 30.0% C 0.120 H 302.1°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#3A175E
RGBrgb(58, 23, 94)
HSLhsl(270, 61%, 23%)
HSVhsv(270, 76%, 37%)
CMYKcmyk(38.3%, 75.5%, 0%, 63.1%)
CIE-LABlab(17.09, 32.33, -35.59)
CIE-LCHlch(17.09, 48.08, 312.25°)
OKLaboklab(29.96% 0.0636 -0.1014)
OKLCHoklch(29.96% 0.12 302.1)
XYZxyz(4.0712, 2.3205, 10.8209)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A175E #3B5E17
analogous
#17185E #3A175E #5D175E
triadic
#3A175E #5E3A17 #175E3A
tetradic
#3A175E #5E1718 #3B5E17 #175E5D
square
#3A175E #5E1718 #3B5E17 #175E5D
split-complementary
#3A175E #5E5D17 #185E17
monochromatic
#0F0619 #1C0B2D #3A175E #58238F #772FC0

Accessibility & contrast

On white

14.34
#3A175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3A175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A175E
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A175E#FFFFFF#000000##FFFFFF
##3A175E1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#322838
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a175e;
/* rgb */ color: rgb(58, 23, 94);
/* oklch */ color: oklch(30.0% 0.120 302.1);
Tailwind
colors: {
  custom: {
    50: '#74578c',
    500: '#3a175e',
    950: '#000000',
  },
}
SCSS
$custom: #3a175e;
$custom-light: #74578c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a175e",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 269.577,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29957,
    "c": 0.1197,
    "h": 302.1
  },
  "luminance": 0.0232
}

Semantic roles & 50–950 ramp

primary
#3A175E
secondary
#69953C
accent
#E44495
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A175E

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

Preview Lab → · Contrast checker → · Palette generator →

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