#340F6A#340F6A

#340F6A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.142 H 294.0°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#340F6A
RGBrgb(52, 15, 106)
HSLhsl(264, 75%, 24%)
HSVhsv(264, 86%, 42%)
CMYKcmyk(50.9%, 85.8%, 0%, 58.4%)
CIE-LABlab(16.07, 38.39, -45.23)
CIE-LCHlch(16.07, 59.32, 310.32°)
OKLaboklab(29.41% 0.0578 -0.1298)
OKLCHoklch(29.41% 0.142 294)
XYZxyz(4.1878, 2.1122, 13.8199)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F6A #456A0F
analogous
#0F176A #340F6A #610F6A
triadic
#340F6A #6A340F #0F6A34
tetradic
#340F6A #6A0F17 #456A0F #0F6A61
square
#340F6A #6A0F17 #456A0F #0F6A61
split-complementary
#340F6A #6A610F #176A0F
monochromatic
#0D041B #1A0734 #340F6A #4E17A0 #691ED5

Accessibility & contrast

On white

14.76
#340F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#340F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F6A
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F6A#FFFFFF#000000##FFFFFF
##340F6A1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#232A3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #340f6a;
/* rgb */ color: rgb(52, 15, 106);
/* oklch */ color: oklch(29.4% 0.142 294.0);
Tailwind
colors: {
  custom: {
    50: '#725396',
    500: '#340f6a',
    950: '#000000',
  },
}
SCSS
$custom: #340f6a;
$custom-light: #725396;
$custom-dark: #000000;
JSON
{
  "hex": "#340f6a",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 264.396,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29409,
    "c": 0.1421,
    "h": 294
  },
  "luminance": 0.02112
}

Semantic roles & 50–950 ramp

primary
#340F6A
secondary
#75A232
accent
#F236A5
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #340F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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