#341257#341257

#341257 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.117 H 301.6°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#341257
RGBrgb(52, 18, 87)
HSLhsl(270, 66%, 21%)
HSVhsv(270, 79%, 34%)
CMYKcmyk(40.2%, 79.3%, 0%, 65.9%)
CIE-LABlab(14.68, 31.72, -34.84)
CIE-LCHlch(14.68, 47.12, 312.31°)
OKLaboklab(27.87% 0.0611 -0.0994)
OKLCHoklch(27.87% 0.117 301.6)
XYZxyz(3.3524, 1.8508, 9.1956)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341257 #355712
analogous
#121357 #341257 #561257
triadic
#341257 #573412 #125734
tetradic
#341257 #571213 #355712 #125756
square
#341257 #571213 #355712 #125756
split-complementary
#341257 #575612 #135712
monochromatic
#0F0519 #160824 #341257 #521C8A #7127BC

Accessibility & contrast

On white

15.33
#341257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#341257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341257
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341257#FFFFFF#000000##FFFFFF
##3412571.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#2C2333
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #341257;
/* rgb */ color: rgb(52, 18, 87);
/* oklch */ color: oklch(27.9% 0.117 301.6);
Tailwind
colors: {
  custom: {
    50: '#6f5387',
    500: '#341257',
    950: '#000000',
  },
}
SCSS
$custom: #341257;
$custom-light: #6f5387;
$custom-dark: #000000;
JSON
{
  "hex": "#341257",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 269.565,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27872,
    "c": 0.11666,
    "h": 301.6
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#341257
secondary
#639035
accent
#E93F95
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #341257

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

Preview Lab → · Contrast checker → · Palette generator →

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