#340746#340746

#340746 is a dark, moderate purple. Relative luminance 0.013; OKLCH L 25.1% C 0.111 H 313.6°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#340746
RGBrgb(52, 7, 70)
HSLhsl(283, 82%, 15%)
HSVhsv(283, 90%, 27%)
CMYKcmyk(25.7%, 90%, 0%, 72.5%)
CIE-LABlab(11.44, 32.31, -28.42)
CIE-LCHlch(11.44, 43.03, 318.67°)
OKLaboklab(25.12% 0.0766 -0.0804)
OKLCHoklch(25.12% 0.111 313.6)
XYZxyz(2.5974, 1.3243, 5.9120)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340746 #194607
analogous
#140746 #340746 #460738
triadic
#340746 #463407 #074634
tetradic
#340746 #461407 #194607 #073846
square
#340746 #461407 #194607 #073846
split-complementary
#340746 #384607 #074614
monochromatic
#15031C #15031C #340746 #5D0D7E #8712B5

Accessibility & contrast

On white

16.60
#340746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#340746 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340746
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340746#FFFFFF#000000##FFFFFF
##3407461.0016.601.2616.60
#FFFFFF16.601.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C48
Deuteranopia (green-blind)
#021F45
Tritanopia (blue-blind)
#321727
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340746;
/* rgb */ color: rgb(52, 7, 70);
/* oklch */ color: oklch(25.1% 0.111 313.6);
Tailwind
colors: {
  custom: {
    50: '#6f4d7a',
    500: '#340746',
    950: '#000000',
  },
}
SCSS
$custom: #340746;
$custom-light: #6f4d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#340746",
  "rgb": {
    "r": 52,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 282.857,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25121,
    "c": 0.11106,
    "h": 313.6
  },
  "luminance": 0.01324
}

Semantic roles & 50–950 ramp

primary
#340746
secondary
#408524
accent
#F83069
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340746

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

Preview Lab → · Contrast checker → · Palette generator →

#340746 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva