#340A3F#340A3F

#340A3F is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.8% C 0.100 H 318.3°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#340A3F
RGBrgb(52, 10, 63)
HSLhsl(288, 73%, 14%)
HSVhsv(288, 84%, 25%)
CMYKcmyk(17.5%, 84.1%, 0%, 75.3%)
CIE-LABlab(11.32, 29.38, -23.68)
CIE-LCHlch(11.32, 37.74, 321.13°)
OKLaboklab(24.85% 0.0746 -0.0665)
OKLCHoklch(24.85% 0.1 318.3)
XYZxyz(2.4218, 1.3061, 4.8262)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A3F #153F0A
analogous
#1A0A3F #340A3F #3F0A30
triadic
#340A3F #3F340A #0A3F34
tetradic
#340A3F #3F1A0A #153F0A #0A303F
square
#340A3F #3F1A0A #153F0A #0A303F
split-complementary
#340A3F #303F0A #0A3F1A
monochromatic
#16041A #16041A #340A3F #601274 #8B1BA9

Accessibility & contrast

On white

16.65
#340A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#340A3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A3F
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A3F#FFFFFF#000000##FFFFFF
##340A3F1.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B40
Deuteranopia (green-blind)
#0D1F3E
Tritanopia (blue-blind)
#341524
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340a3f;
/* rgb */ color: rgb(52, 10, 63);
/* oklch */ color: oklch(24.8% 0.100 318.3);
Tailwind
colors: {
  custom: {
    50: '#6e4e74',
    500: '#340a3f',
    950: '#000000',
  },
}
SCSS
$custom: #340a3f;
$custom-light: #6e4e74;
$custom-dark: #000000;
JSON
{
  "hex": "#340a3f",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 63
  },
  "hsl": {
    "h": 287.547,
    "s": 72.603,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24849,
    "c": 0.09999,
    "h": 318.3
  },
  "luminance": 0.01306
}

Semantic roles & 50–950 ramp

primary
#340A3F
secondary
#3A7C29
accent
#EF385E
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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