#341C4C#341C4C

#341C4C is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.087 H 304.5°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#341C4C
RGBrgb(52, 28, 76)
HSLhsl(270, 46%, 20%)
HSVhsv(270, 63%, 30%)
CMYKcmyk(31.6%, 63.2%, 0%, 70.2%)
CIE-LABlab(15.91, 22.80, -25.37)
CIE-LCHlch(15.91, 34.11, 311.94°)
OKLaboklab(28.48% 0.0493 -0.0716)
OKLCHoklch(28.48% 0.087 304.5)
XYZxyz(3.1356, 2.0824, 7.0728)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C4C #344C1C
analogous
#1C1C4C #341C4C #4C1C4C
triadic
#341C4C #4C341C #1C4C34
tetradic
#341C4C #4C1C1C #344C1C #1C4C4C
square
#341C4C #4C1C1C #344C1C #1C4C4C
split-complementary
#341C4C #4C4C1C #1C4C1C
monochromatic
#0F0816 #150C1F #341C4C #532C79 #713DA5

Accessibility & contrast

On white

14.83
#341C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#341C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C4C
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C4C#FFFFFF#000000##FFFFFF
##341C4C1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09274E
Deuteranopia (green-blind)
#12284B
Tritanopia (blue-blind)
#302531
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #341c4c;
/* rgb */ color: rgb(52, 28, 76);
/* oklch */ color: oklch(28.5% 0.087 304.5);
Tailwind
colors: {
  custom: {
    50: '#6d597e',
    500: '#341c4c',
    950: '#000000',
  },
}
SCSS
$custom: #341c4c;
$custom-light: #6d597e;
$custom-dark: #000000;
JSON
{
  "hex": "#341c4c",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 76
  },
  "hsl": {
    "h": 270,
    "s": 46.154,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28478,
    "c": 0.08693,
    "h": 304.5
  },
  "luminance": 0.02082
}

Semantic roles & 50–950 ramp

primary
#341C4C
secondary
#628242
accent
#D65294
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #341C4C

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

Preview Lab → · Contrast checker → · Palette generator →

#341C4C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva