#341237#341237

#341237 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.3% C 0.079 H 324.3°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#341237
RGBrgb(52, 18, 55)
HSLhsl(295, 51%, 14%)
HSVhsv(295, 67%, 22%)
CMYKcmyk(5.5%, 67.3%, 0%, 78.4%)
CIE-LABlab(12.21, 23.48, -16.54)
CIE-LCHlch(12.21, 28.72, 324.84°)
OKLaboklab(25.31% 0.0638 -0.0458)
OKLCHoklch(25.31% 0.079 324.3)
XYZxyz(2.3220, 1.4386, 3.7691)
Luminance0.0144 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341237 #153712
analogous
#221237 #341237 #371228
triadic
#341237 #373412 #123734
tetradic
#341237 #372212 #153712 #122837
square
#341237 #372212 #153712 #122837
split-complementary
#341237 #283712 #123722
monochromatic
#160817 #160817 #341237 #602165 #8B3093

Accessibility & contrast

On white

16.31
#341237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#341237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341237
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341237#FFFFFF#000000##FFFFFF
##3412371.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1D38
Deuteranopia (green-blind)
#182136
Tritanopia (blue-blind)
#351722
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #341237;
/* rgb */ color: rgb(52, 18, 55);
/* oklch */ color: oklch(25.3% 0.079 324.3);
Tailwind
colors: {
  custom: {
    50: '#6d526e',
    500: '#341237',
    950: '#000000',
  },
}
SCSS
$custom: #341237;
$custom-light: #6d526e;
$custom-dark: #000000;
JSON
{
  "hex": "#341237",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 295.135,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.25313,
    "c": 0.07853,
    "h": 324.3
  },
  "luminance": 0.01439
}

Semantic roles & 50–950 ramp

primary
#341237
secondary
#3A7035
accent
#DA4E59
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #341237

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

Preview Lab → · Contrast checker → · Palette generator →

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