#341254#341254

#341254 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.113 H 303.1°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#341254
RGBrgb(52, 18, 84)
HSLhsl(271, 65%, 20%)
HSVhsv(271, 79%, 33%)
CMYKcmyk(38.1%, 78.6%, 0%, 67.1%)
CIE-LABlab(14.42, 30.89, -33.25)
CIE-LCHlch(14.42, 45.38, 312.89°)
OKLaboklab(27.6% 0.0618 -0.0947)
OKLCHoklch(27.6% 0.113 303.1)
XYZxyz(3.2323, 1.8028, 8.5635)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341254 #325412
analogous
#131254 #341254 #541253
triadic
#341254 #543412 #125434
tetradic
#341254 #541312 #325412 #125354
square
#341254 #541312 #325412 #125354
split-complementary
#341254 #535412 #125413
monochromatic
#100519 #150722 #341254 #531D86 #7228B9

Accessibility & contrast

On white

15.43
#341254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#341254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341254
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341254#FFFFFF#000000##FFFFFF
##3412541.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#2E2231
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #341254;
/* rgb */ color: rgb(52, 18, 84);
/* oklch */ color: oklch(27.6% 0.113 303.1);
Tailwind
colors: {
  custom: {
    50: '#6f5385',
    500: '#341254',
    950: '#000000',
  },
}
SCSS
$custom: #341254;
$custom-light: #6f5385;
$custom-dark: #000000;
JSON
{
  "hex": "#341254",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 270.909,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.27599,
    "c": 0.11305,
    "h": 303.1
  },
  "luminance": 0.01803
}

Semantic roles & 50–950 ramp

primary
#341254
secondary
#608D35
accent
#E84091
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #341254

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

Preview Lab → · Contrast checker → · Palette generator →

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