#341155#341155

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

Color values

HEX#341155
RGBrgb(52, 17, 85)
HSLhsl(271, 67%, 20%)
HSVhsv(271, 80%, 33%)
CMYKcmyk(38.8%, 80%, 0%, 66.7%)
CIE-LABlab(14.33, 31.67, -34.07)
CIE-LCHlch(14.33, 46.52, 312.91°)
OKLaboklab(27.56% 0.0626 -0.0971)
OKLCHoklch(27.56% 0.116 302.8)
XYZxyz(3.2559, 1.7868, 8.7659)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341155 #325511
analogous
#121155 #341155 #551154
triadic
#341155 #553411 #115534
tetradic
#341155 #551211 #325511 #115455
square
#341155 #551211 #325511 #115455
split-complementary
#341155 #545511 #115512
monochromatic
#10051A #150722 #341155 #531B88 #7225BB

Accessibility & contrast

On white

15.47
#341155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341155
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341155#FFFFFF#000000##FFFFFF
##3411551.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#2D2232
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #341155;
/* rgb */ color: rgb(52, 17, 85);
/* oklch */ color: oklch(27.6% 0.116 302.8);
Tailwind
colors: {
  custom: {
    50: '#6f5385',
    500: '#341155',
    950: '#000000',
  },
}
SCSS
$custom: #341155;
$custom-light: #6f5385;
$custom-dark: #000000;
JSON
{
  "hex": "#341155",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 270.882,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.27564,
    "c": 0.11555,
    "h": 302.8
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#341155
secondary
#608E34
accent
#EA3E91
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #341155

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

Preview Lab → · Contrast checker → · Palette generator →

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