#341756#341756

#341756 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.108 H 300.8°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#341756
RGBrgb(52, 23, 86)
HSLhsl(268, 58%, 21%)
HSVhsv(268, 73%, 34%)
CMYKcmyk(39.5%, 73.3%, 0%, 66.3%)
CIE-LABlab(15.56, 28.72, -32.74)
CIE-LCHlch(15.56, 43.55, 311.26°)
OKLaboklab(28.47% 0.0555 -0.0932)
OKLCHoklch(28.47% 0.108 300.8)
XYZxyz(3.4019, 2.0147, 9.0119)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341756 #395617
analogous
#171A56 #341756 #541756
triadic
#341756 #563417 #175634
tetradic
#341756 #56171A #395617 #175654
square
#341756 #56171A #395617 #175654
split-complementary
#341756 #565417 #1A5617
monochromatic
#0F0618 #170A26 #341756 #512486 #6E31B7

Accessibility & contrast

On white

14.97
#341756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#341756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341756
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341756#FFFFFF#000000##FFFFFF
##3417561.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#2D2634
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #341756;
/* rgb */ color: rgb(52, 23, 86);
/* oklch */ color: oklch(28.5% 0.108 300.8);
Tailwind
colors: {
  custom: {
    50: '#6f5686',
    500: '#341756',
    950: '#000000',
  },
}
SCSS
$custom: #341756;
$custom-light: #6f5686;
$custom-dark: #000000;
JSON
{
  "hex": "#341756",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 86
  },
  "hsl": {
    "h": 267.619,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28472,
    "c": 0.10849,
    "h": 300.8
  },
  "luminance": 0.02015
}

Semantic roles & 50–950 ramp

primary
#341756
secondary
#688D3C
accent
#E1479A
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #341756

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

Preview Lab → · Contrast checker → · Palette generator →

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