#341052#341052

#341052 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.113 H 304.6°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#341052
RGBrgb(52, 16, 82)
HSLhsl(273, 67%, 19%)
HSVhsv(273, 80%, 32%)
CMYKcmyk(36.6%, 80.5%, 0%, 67.8%)
CIE-LABlab(13.88, 31.35, -32.75)
CIE-LCHlch(13.88, 45.34, 313.75°)
OKLaboklab(27.17% 0.0644 -0.0932)
OKLCHoklch(27.17% 0.113 304.6)
XYZxyz(3.1241, 1.7099, 8.1465)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341052 #2E5210
analogous
#131052 #341052 #52104F
triadic
#341052 #523410 #105234
tetradic
#341052 #521310 #2E5210 #104F52
square
#341052 #521310 #2E5210 #104F52
split-complementary
#341052 #4F5210 #105213
monochromatic
#10051A #14061F #341052 #541A85 #7524B8

Accessibility & contrast

On white

15.65
#341052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#341052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341052
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341052#FFFFFF#000000##FFFFFF
##3410521.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#2E2030
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #341052;
/* rgb */ color: rgb(52, 16, 82);
/* oklch */ color: oklch(27.2% 0.113 304.6);
Tailwind
colors: {
  custom: {
    50: '#6f5283',
    500: '#341052',
    950: '#000000',
  },
}
SCSS
$custom: #341052;
$custom-light: #6f5283;
$custom-dark: #000000;
JSON
{
  "hex": "#341052",
  "rgb": {
    "r": 52,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 272.727,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27168,
    "c": 0.1133,
    "h": 304.6
  },
  "luminance": 0.0171
}

Semantic roles & 50–950 ramp

primary
#341052
secondary
#5B8C32
accent
#EA3E8C
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #341052

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

Preview Lab → · Contrast checker → · Palette generator →

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