#341152#341152

#341152 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.112 H 304.4°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#341152
RGBrgb(52, 17, 82)
HSLhsl(272, 66%, 19%)
HSVhsv(272, 79%, 32%)
CMYKcmyk(36.6%, 79.3%, 0%, 67.8%)
CIE-LABlab(14.06, 30.85, -32.46)
CIE-LCHlch(14.06, 44.79, 313.54°)
OKLaboklab(27.29% 0.0633 -0.0924)
OKLCHoklch(27.29% 0.112 304.4)
XYZxyz(3.1393, 1.7402, 8.1515)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341152 #2F5211
analogous
#141152 #341152 #521150
triadic
#341152 #523411 #115234
tetradic
#341152 #521411 #2F5211 #115052
square
#341152 #521411 #2F5211 #115052
split-complementary
#341152 #505211 #115214
monochromatic
#100519 #14061F #341152 #541C85 #7426B7

Accessibility & contrast

On white

15.58
#341152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#341152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341152
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341152#FFFFFF#000000##FFFFFF
##3411521.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#2E2130
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #341152;
/* rgb */ color: rgb(52, 17, 82);
/* oklch */ color: oklch(27.3% 0.112 304.4);
Tailwind
colors: {
  custom: {
    50: '#6f5383',
    500: '#341152',
    950: '#000000',
  },
}
SCSS
$custom: #341152;
$custom-light: #6f5383;
$custom-dark: #000000;
JSON
{
  "hex": "#341152",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 272.308,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27292,
    "c": 0.11199,
    "h": 304.4
  },
  "luminance": 0.0174
}

Semantic roles & 50–950 ramp

primary
#341152
secondary
#5C8B34
accent
#E93F8D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #341152

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

Preview Lab → · Contrast checker → · Palette generator →

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