#341054#341054

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

Color values

HEX#341054
RGBrgb(52, 16, 84)
HSLhsl(272, 68%, 20%)
HSVhsv(272, 81%, 33%)
CMYKcmyk(38.1%, 81%, 0%, 67.1%)
CIE-LABlab(14.06, 31.89, -33.82)
CIE-LCHlch(14.06, 46.49, 313.32°)
OKLaboklab(27.35% 0.0639 -0.0964)
OKLCHoklch(27.35% 0.116 303.6)
XYZxyz(3.2013, 1.7407, 8.5531)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341054 #305410
analogous
#121054 #341054 #541052
triadic
#341054 #543410 #105434
tetradic
#341054 #541210 #305410 #105254
square
#341054 #541210 #305410 #105254
split-complementary
#341054 #525410 #105412
monochromatic
#10051A #140621 #341054 #541A87 #7424BB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##341054#FFFFFF#000000##FFFFFF
##3410541.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)
#002356
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#2E2131
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #341054;
/* rgb */ color: rgb(52, 16, 84);
/* oklch */ color: oklch(27.4% 0.116 303.6);
Tailwind
colors: {
  custom: {
    50: '#6f5285',
    500: '#341054',
    950: '#000000',
  },
}
SCSS
$custom: #341054;
$custom-light: #6f5285;
$custom-dark: #000000;
JSON
{
  "hex": "#341054",
  "rgb": {
    "r": 52,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 271.765,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2735,
    "c": 0.11564,
    "h": 303.6
  },
  "luminance": 0.01741
}

Semantic roles & 50–950 ramp

primary
#341054
secondary
#5D8E32
accent
#EB3D8F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #341054

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

Preview Lab → · Contrast checker → · Palette generator →

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