#341838#341838

#341838 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.4% C 0.068 H 322.5°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#341838
RGBrgb(52, 24, 56)
HSLhsl(293, 40%, 16%)
HSVhsv(293, 57%, 22%)
CMYKcmyk(7.1%, 57.1%, 0%, 78%)
CIE-LABlab(13.64, 20.05, -15.00)
CIE-LCHlch(13.64, 25.04, 323.19°)
OKLaboklab(26.39% 0.0539 -0.0414)
OKLCHoklch(26.39% 0.068 322.5)
XYZxyz(2.4565, 1.6690, 3.9334)
Luminance0.0167 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341838 #1C3818
analogous
#241838 #341838 #38182C
triadic
#341838 #383418 #183834
tetradic
#341838 #382418 #1C3818 #182C38
square
#341838 #382418 #1C3818 #182C38
split-complementary
#341838 #2C3818 #183824
monochromatic
#140915 #140915 #341838 #5C2A63 #843D8E

Accessibility & contrast

On white

15.74
#341838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#341838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341838
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341838#FFFFFF#000000##FFFFFF
##3418381.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132139
Deuteranopia (green-blind)
#1C2437
Tritanopia (blue-blind)
#351C25
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #341838;
/* rgb */ color: rgb(52, 24, 56);
/* oklch */ color: oklch(26.4% 0.068 322.5);
Tailwind
colors: {
  custom: {
    50: '#6c566e',
    500: '#341838',
    950: '#000000',
  },
}
SCSS
$custom: #341838;
$custom-light: #6c566e;
$custom-dark: #000000;
JSON
{
  "hex": "#341838",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 56
  },
  "hsl": {
    "h": 292.5,
    "s": 40,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26386,
    "c": 0.06796,
    "h": 322.5
  },
  "luminance": 0.01669
}

Semantic roles & 50–950 ramp

primary
#341838
secondary
#446E3E
accent
#D05867
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070307
muted
#7A787A

Preview Lab

Preview with #341838

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

Preview Lab → · Contrast checker → · Palette generator →

#341838 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva