#340F3F#340F3F

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

Color values

HEX#340F3F
RGBrgb(52, 15, 63)
HSLhsl(286, 62%, 15%)
HSVhsv(286, 76%, 25%)
CMYKcmyk(17.5%, 76.2%, 0%, 75.3%)
CIE-LABlab(12.16, 27.00, -22.33)
CIE-LCHlch(12.16, 35.04, 320.41°)
OKLaboklab(25.45% 0.0684 -0.0626)
OKLCHoklch(25.45% 0.093 317.5)
XYZxyz(2.4841, 1.4307, 4.8470)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F3F #1A3F0F
analogous
#1C0F3F #340F3F #3F0F32
triadic
#340F3F #3F340F #0F3F34
tetradic
#340F3F #3F1C0F #1A3F0F #0F323F
square
#340F3F #3F1C0F #1A3F0F #0F323F
split-complementary
#340F3F #323F0F #0F3F1C
monochromatic
#140619 #140619 #340F3F #5D1B70 #8627A2

Accessibility & contrast

On white

16.33
#340F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#340F3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F3F
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F3F#FFFFFF#000000##FFFFFF
##340F3F1.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#11213E
Tritanopia (blue-blind)
#341825
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340f3f;
/* rgb */ color: rgb(52, 15, 63);
/* oklch */ color: oklch(25.5% 0.093 317.5);
Tailwind
colors: {
  custom: {
    50: '#6d5174',
    500: '#340f3f',
    950: '#000000',
  },
}
SCSS
$custom: #340f3f;
$custom-light: #6d5174;
$custom-dark: #000000;
JSON
{
  "hex": "#340f3f",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 286.25,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25451,
    "c": 0.09276,
    "h": 317.5
  },
  "luminance": 0.01431
}

Semantic roles & 50–950 ramp

primary
#340F3F
secondary
#417930
accent
#E54368
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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