#340A4A#340A4A

#340A4A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.8% C 0.112 H 310.5°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#340A4A
RGBrgb(52, 10, 74)
HSLhsl(279, 76%, 16%)
HSVhsv(279, 86%, 29%)
CMYKcmyk(29.7%, 86.5%, 0%, 71%)
CIE-LABlab(12.23, 32.00, -29.93)
CIE-LCHlch(12.23, 43.82, 316.92°)
OKLaboklab(25.78% 0.0726 -0.0849)
OKLCHoklch(25.78% 0.112 310.5)
XYZxyz(2.7605, 1.4416, 6.6101)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A4A #204A0A
analogous
#140A4A #340A4A #4A0A40
triadic
#340A4A #4A340A #0A4A34
tetradic
#340A4A #4A140A #204A0A #0A404A
square
#340A4A #4A140A #204A0A #0A404A
split-complementary
#340A4A #404A0A #0A4A14
monochromatic
#13041B #13041B #340A4A #5A1180 #8019B6

Accessibility & contrast

On white

16.30
#340A4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#340A4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A4A
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A4A#FFFFFF#000000##FFFFFF
##340A4A1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#002149
Tritanopia (blue-blind)
#311A2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340a4a;
/* rgb */ color: rgb(52, 10, 74);
/* oklch */ color: oklch(25.8% 0.112 310.5);
Tailwind
colors: {
  custom: {
    50: '#6f4f7d',
    500: '#340a4a',
    950: '#000000',
  },
}
SCSS
$custom: #340a4a;
$custom-light: #6f4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#340a4a",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 74
  },
  "hsl": {
    "h": 279.375,
    "s": 76.19,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25783,
    "c": 0.11165,
    "h": 310.5
  },
  "luminance": 0.01442
}

Semantic roles & 50–950 ramp

primary
#340A4A
secondary
#498729
accent
#F33576
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #340A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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