#340C55#340C55

#340C55 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 27.0% C 0.121 H 303.8°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#340C55
RGBrgb(52, 12, 85)
HSLhsl(273, 75%, 19%)
HSVhsv(273, 86%, 33%)
CMYKcmyk(38.8%, 85.9%, 0%, 66.7%)
CIE-LABlab(13.53, 33.97, -35.38)
CIE-LCHlch(13.53, 49.05, 313.84°)
OKLaboklab(27% 0.0676 -0.1009)
OKLCHoklch(27% 0.121 303.8)
XYZxyz(3.1870, 1.6489, 8.7429)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C55 #2D550C
analogous
#100C55 #340C55 #550C52
triadic
#340C55 #55340C #0C5534
tetradic
#340C55 #55100C #2D550C #0C5255
square
#340C55 #55100C #2D550C #0C5255
split-complementary
#340C55 #52550C #0C5510
monochromatic
#10041B #13041F #340C55 #55148B #761BC0

Accessibility & contrast

On white

15.79
#340C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#340C55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C55
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C55#FFFFFF#000000##FFFFFF
##340C551.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002257
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#2D2031
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #340c55;
/* rgb */ color: rgb(52, 12, 85);
/* oklch */ color: oklch(27.0% 0.121 303.8);
Tailwind
colors: {
  custom: {
    50: '#705086',
    500: '#340c55',
    950: '#000000',
  },
}
SCSS
$custom: #340c55;
$custom-light: #705086;
$custom-dark: #000000;
JSON
{
  "hex": "#340c55",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 272.877,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27001,
    "c": 0.12144,
    "h": 303.8
  },
  "luminance": 0.01649
}

Semantic roles & 50–950 ramp

primary
#340C55
secondary
#5A902D
accent
#F2368B
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #340C55

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

Preview Lab → · Contrast checker → · Palette generator →

#340C55 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva