#340C50#340C50

#340C50 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.116 H 306.6°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#340C50
RGBrgb(52, 12, 80)
HSLhsl(275, 74%, 18%)
HSVhsv(275, 85%, 31%)
CMYKcmyk(35%, 85%, 0%, 68.6%)
CIE-LABlab(13.06, 32.67, -32.72)
CIE-LCHlch(13.06, 46.24, 314.96°)
OKLaboklab(26.53% 0.069 -0.0931)
OKLCHoklch(26.53% 0.116 306.6)
XYZxyz(2.9953, 1.5722, 7.7335)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C50 #28500C
analogous
#120C50 #340C50 #500C4A
triadic
#340C50 #50340C #0C5034
tetradic
#340C50 #50120C #28500C #0C4A50
square
#340C50 #50120C #28500C #0C4A50
split-complementary
#340C50 #4A500C #0C5012
monochromatic
#11041B #11041B #340C50 #571485 #791CBA

Accessibility & contrast

On white

15.98
#340C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#340C50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C50
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C50#FFFFFF#000000##FFFFFF
##340C501.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002052
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#2F1D2E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #340c50;
/* rgb */ color: rgb(52, 12, 80);
/* oklch */ color: oklch(26.5% 0.116 306.6);
Tailwind
colors: {
  custom: {
    50: '#6f5082',
    500: '#340c50',
    950: '#000000',
  },
}
SCSS
$custom: #340c50;
$custom-light: #6f5082;
$custom-dark: #000000;
JSON
{
  "hex": "#340c50",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 80
  },
  "hsl": {
    "h": 275.294,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26532,
    "c": 0.11591,
    "h": 306.6
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#340C50
secondary
#548B2C
accent
#F13784
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020A
muted
#7B787C

Preview Lab

Preview with #340C50

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

Preview Lab → · Contrast checker → · Palette generator →

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