#341157#341157

#341157 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.118 H 301.8°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#341157
RGBrgb(52, 17, 87)
HSLhsl(270, 67%, 20%)
HSVhsv(270, 80%, 34%)
CMYKcmyk(40.2%, 80.5%, 0%, 65.9%)
CIE-LABlab(14.51, 32.22, -35.13)
CIE-LCHlch(14.51, 47.67, 312.52°)
OKLaboklab(27.75% 0.0621 -0.1002)
OKLCHoklch(27.75% 0.118 301.8)
XYZxyz(3.3365, 1.8191, 9.1903)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341157 #345711
analogous
#111157 #341157 #571157
triadic
#341157 #573411 #115734
tetradic
#341157 #571111 #345711 #115757
square
#341157 #571111 #345711 #115757
split-complementary
#341157 #575711 #115711
monochromatic
#0F051A #150724 #341157 #531B8A #7125BD

Accessibility & contrast

On white

15.40
#341157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341157
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341157#FFFFFF#000000##FFFFFF
##3411571.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341157;
/* rgb */ color: rgb(52, 17, 87);
/* oklch */ color: oklch(27.7% 0.118 301.8);
Tailwind
colors: {
  custom: {
    50: '#705387',
    500: '#341157',
    950: '#000000',
  },
}
SCSS
$custom: #341157;
$custom-light: #705387;
$custom-dark: #000000;
JSON
{
  "hex": "#341157",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 270,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27748,
    "c": 0.11792,
    "h": 301.8
  },
  "luminance": 0.01819
}

Semantic roles & 50–950 ramp

primary
#341157
secondary
#629034
accent
#EA3E94
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #341157

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

Preview Lab → · Contrast checker → · Palette generator →

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