#340F3E#340F3E

#340F3E is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.4% C 0.092 H 318.4°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#340F3E
RGBrgb(52, 15, 62)
HSLhsl(287, 61%, 15%)
HSVhsv(287, 76%, 24%)
CMYKcmyk(16.1%, 75.8%, 0%, 75.7%)
CIE-LABlab(12.09, 26.76, -21.74)
CIE-LCHlch(12.09, 34.48, 320.92°)
OKLaboklab(25.37% 0.0685 -0.0609)
OKLCHoklch(25.37% 0.092 318.4)
XYZxyz(2.4564, 1.4196, 4.7011)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F3E #193E0F
analogous
#1C0F3E #340F3E #3E0F30
triadic
#340F3E #3E340F #0F3E34
tetradic
#340F3E #3E1C0F #193E0F #0F303E
square
#340F3E #3E1C0F #193E0F #0F303E
split-complementary
#340F3E #303E0F #0F3E1C
monochromatic
#150619 #150619 #340F3E #5D1B6F #8727A1

Accessibility & contrast

On white

16.36
#340F3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F3E
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F3E#FFFFFF#000000##FFFFFF
##340F3E1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011D3F
Deuteranopia (green-blind)
#11213D
Tritanopia (blue-blind)
#341825
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340f3e;
/* rgb */ color: rgb(52, 15, 62);
/* oklch */ color: oklch(25.4% 0.092 318.4);
Tailwind
colors: {
  custom: {
    50: '#6d5173',
    500: '#340f3e',
    950: '#000000',
  },
}
SCSS
$custom: #340f3e;
$custom-light: #6d5173;
$custom-dark: #000000;
JSON
{
  "hex": "#340f3e",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 62
  },
  "hsl": {
    "h": 287.234,
    "s": 61.039,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25375,
    "c": 0.09163,
    "h": 318.4
  },
  "luminance": 0.0142
}

Semantic roles & 50–950 ramp

primary
#340F3E
secondary
#407830
accent
#E44466
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340F3E

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

Preview Lab → · Contrast checker → · Palette generator →

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