#3A183E#3A183E

#3A183E is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.7% C 0.079 H 323.3°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#3A183E
RGBrgb(58, 24, 62)
HSLhsl(294, 44%, 17%)
HSVhsv(294, 61%, 24%)
CMYKcmyk(6.5%, 61.3%, 0%, 75.7%)
CIE-LABlab(14.96, 23.53, -17.12)
CIE-LCHlch(14.96, 29.10, 323.96°)
OKLaboklab(27.67% 0.0635 -0.0473)
OKLCHoklch(27.67% 0.079 323.3)
XYZxyz(2.9410, 1.9008, 4.7685)
Luminance0.0190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A183E #1C3E18
analogous
#27183E #3A183E #3E182F
triadic
#3A183E #3E3A18 #183E3A
tetradic
#3A183E #3E2718 #1C3E18 #182F3E
square
#3A183E #3E2718 #1C3E18 #182F3E
split-complementary
#3A183E #2F3E18 #183E27
monochromatic
#150916 #150916 #3A183E #63296A #8D3A96

Accessibility & contrast

On white

15.22
#3A183E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3A183E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A183E
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A183E#FFFFFF#000000##FFFFFF
##3A183E1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12233F
Deuteranopia (green-blind)
#1D273D
Tritanopia (blue-blind)
#3B1D28
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a183e;
/* rgb */ color: rgb(58, 24, 62);
/* oklch */ color: oklch(27.7% 0.079 323.3);
Tailwind
colors: {
  custom: {
    50: '#715773',
    500: '#3a183e',
    950: '#000000',
  },
}
SCSS
$custom: #3a183e;
$custom-light: #715773;
$custom-dark: #000000;
JSON
{
  "hex": "#3a183e",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 62
  },
  "hsl": {
    "h": 293.684,
    "s": 44.186,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27673,
    "c": 0.07923,
    "h": 323.3
  },
  "luminance": 0.01901
}

Semantic roles & 50–950 ramp

primary
#3A183E
secondary
#43743D
accent
#D45461
background
#F6F5F7
surface
#ECE9ED
border
#C7C5C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #3A183E

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

Preview Lab → · Contrast checker → · Palette generator →

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