#340D43#340D43

#340D43 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.5% C 0.100 H 314.8°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#340D43
RGBrgb(52, 13, 67)
HSLhsl(283, 68%, 16%)
HSVhsv(283, 81%, 26%)
CMYKcmyk(22.4%, 80.6%, 0%, 73.7%)
CIE-LABlab(12.11, 28.96, -25.23)
CIE-LCHlch(12.11, 38.41, 318.94°)
OKLaboklab(25.51% 0.0706 -0.0711)
OKLCHoklch(25.51% 0.1 314.8)
XYZxyz(2.5731, 1.4233, 5.4483)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D43 #1C430D
analogous
#190D43 #340D43 #430D37
triadic
#340D43 #43340D #0D4334
tetradic
#340D43 #43190D #1C430D #0D3743
square
#340D43 #43190D #1C430D #0D3743
split-complementary
#340D43 #37430D #0D4319
monochromatic
#14051A #14051A #340D43 #5C1776 #8421AA

Accessibility & contrast

On white

16.35
#340D43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#340D43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D43
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D43#FFFFFF#000000##FFFFFF
##340D431.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E45
Deuteranopia (green-blind)
#0B2142
Tritanopia (blue-blind)
#331827
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340d43;
/* rgb */ color: rgb(52, 13, 67);
/* oklch */ color: oklch(25.5% 0.100 314.8);
Tailwind
colors: {
  custom: {
    50: '#6e5077',
    500: '#340d43',
    950: '#000000',
  },
}
SCSS
$custom: #340d43;
$custom-light: #6e5077;
$custom-dark: #000000;
JSON
{
  "hex": "#340d43",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 67
  },
  "hsl": {
    "h": 283.333,
    "s": 67.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25513,
    "c": 0.10022,
    "h": 314.8
  },
  "luminance": 0.01423
}

Semantic roles & 50–950 ramp

primary
#340D43
secondary
#447E2D
accent
#EA3D6D
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340D43

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

Preview Lab → · Contrast checker → · Palette generator →

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