#341156#341156

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

Color values

HEX#341156
RGBrgb(52, 17, 86)
HSLhsl(270, 67%, 20%)
HSVhsv(270, 80%, 34%)
CMYKcmyk(39.5%, 80.2%, 0%, 66.3%)
CIE-LABlab(14.42, 31.94, -34.60)
CIE-LCHlch(14.42, 47.09, 312.71°)
OKLaboklab(27.66% 0.0624 -0.0987)
OKLCHoklch(27.66% 0.117 302.3)
XYZxyz(3.2959, 1.8028, 8.9766)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341156 #335611
analogous
#121156 #341156 #561155
triadic
#341156 #563411 #115634
tetradic
#341156 #561211 #335611 #115556
square
#341156 #561211 #335611 #115556
split-complementary
#341156 #555611 #115612
monochromatic
#0F051A #150723 #341156 #531B89 #7225BC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##341156#FFFFFF#000000##FFFFFF
##3411561.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)
#002458
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#2D2232
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #341156;
/* rgb */ color: rgb(52, 17, 86);
/* oklch */ color: oklch(27.7% 0.117 302.3);
Tailwind
colors: {
  custom: {
    50: '#6f5386',
    500: '#341156',
    950: '#000000',
  },
}
SCSS
$custom: #341156;
$custom-light: #6f5386;
$custom-dark: #000000;
JSON
{
  "hex": "#341156",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 270.435,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27656,
    "c": 0.11674,
    "h": 302.3
  },
  "luminance": 0.01803
}

Semantic roles & 50–950 ramp

primary
#341156
secondary
#618F34
accent
#EA3E93
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #341156

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

Preview Lab → · Contrast checker → · Palette generator →

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