#340C4B#340C4B

#340C4B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.110 H 309.6°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#340C4B
RGBrgb(52, 12, 75)
HSLhsl(278, 72%, 17%)
HSVhsv(278, 84%, 29%)
CMYKcmyk(30.7%, 84%, 0%, 70.6%)
CIE-LABlab(12.62, 31.40, -30.00)
CIE-LCHlch(12.62, 43.43, 316.31°)
OKLaboklab(26.08% 0.0703 -0.0851)
OKLCHoklch(26.08% 0.11 309.6)
XYZxyz(2.8174, 1.5011, 6.7966)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C4B #234B0C
analogous
#140C4B #340C4B #4B0C43
triadic
#340C4B #4B340C #0C4B34
tetradic
#340C4B #4B140C #234B0C #0C434B
square
#340C4B #4B140C #234B0C #0C434B
split-complementary
#340C4B #434B0C #0C4B14
monochromatic
#12041A #12041A #340C4B #591480 #7D1DB5

Accessibility & contrast

On white

16.15
#340C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#340C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C4B
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C4B#FFFFFF#000000##FFFFFF
##340C4B1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#311B2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340c4b;
/* rgb */ color: rgb(52, 12, 75);
/* oklch */ color: oklch(26.1% 0.110 309.6);
Tailwind
colors: {
  custom: {
    50: '#6f507e',
    500: '#340c4b',
    950: '#000000',
  },
}
SCSS
$custom: #340c4b;
$custom-light: #6f507e;
$custom-dark: #000000;
JSON
{
  "hex": "#340c4b",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 278.095,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2608,
    "c": 0.11038,
    "h": 309.6
  },
  "luminance": 0.01501
}

Semantic roles & 50–950 ramp

primary
#340C4B
secondary
#4D872C
accent
#EF397B
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #340C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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