#340F43#340F43

#340F43 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.8% C 0.097 H 314.4°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#340F43
RGBrgb(52, 15, 67)
HSLhsl(283, 63%, 16%)
HSVhsv(283, 78%, 26%)
CMYKcmyk(22.4%, 77.6%, 0%, 73.7%)
CIE-LABlab(12.46, 27.98, -24.67)
CIE-LCHlch(12.46, 37.30, 318.59°)
OKLaboklab(25.76% 0.0681 -0.0695)
OKLCHoklch(25.76% 0.097 314.4)
XYZxyz(2.5999, 1.4770, 5.4572)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F43 #1E430F
analogous
#1A0F43 #340F43 #430F38
triadic
#340F43 #43340F #0F4334
tetradic
#340F43 #431A0F #1E430F #0F3843
square
#340F43 #431A0F #1E430F #0F3843
split-complementary
#340F43 #38430F #0F431A
monochromatic
#130619 #130619 #340F43 #5B1A75 #8225A7

Accessibility & contrast

On white

16.21
#340F43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#340F43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F43
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F43#FFFFFF#000000##FFFFFF
##340F431.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E45
Deuteranopia (green-blind)
#0D2142
Tritanopia (blue-blind)
#331A27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340f43;
/* rgb */ color: rgb(52, 15, 67);
/* oklch */ color: oklch(25.8% 0.097 314.4);
Tailwind
colors: {
  custom: {
    50: '#6e5177',
    500: '#340f43',
    950: '#000000',
  },
}
SCSS
$custom: #340f43;
$custom-light: #6e5177;
$custom-dark: #000000;
JSON
{
  "hex": "#340f43",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 67
  },
  "hsl": {
    "h": 282.692,
    "s": 63.415,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25763,
    "c": 0.09731,
    "h": 314.4
  },
  "luminance": 0.01477
}

Semantic roles & 50–950 ramp

primary
#340F43
secondary
#477D30
accent
#E64171
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340F43

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

Preview Lab → · Contrast checker → · Palette generator →

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