#340B3F#340B3F

#340B3F is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 25.0% C 0.099 H 318.2°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#340B3F
RGBrgb(52, 11, 63)
HSLhsl(287, 70%, 15%)
HSVhsv(287, 83%, 25%)
CMYKcmyk(17.5%, 82.5%, 0%, 75.3%)
CIE-LABlab(11.47, 28.94, -23.43)
CIE-LCHlch(11.47, 37.24, 321.00°)
OKLaboklab(24.96% 0.0735 -0.0658)
OKLCHoklch(24.96% 0.099 318.2)
XYZxyz(2.4329, 1.3284, 4.8299)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B3F #163F0B
analogous
#1A0B3F #340B3F #3F0B30
triadic
#340B3F #3F340B #0B3F34
tetradic
#340B3F #3F1A0B #163F0B #0B303F
square
#340B3F #3F1A0B #163F0B #0B303F
split-complementary
#340B3F #303F0B #0B3F1A
monochromatic
#16051A #16051A #340B3F #5F1473 #8A1DA7

Accessibility & contrast

On white

16.59
#340B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#340B3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340B3F
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B3F#FFFFFF#000000##FFFFFF
##340B3F1.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#0D203E
Tritanopia (blue-blind)
#341624
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340b3f;
/* rgb */ color: rgb(52, 11, 63);
/* oklch */ color: oklch(25.0% 0.099 318.2);
Tailwind
colors: {
  custom: {
    50: '#6e4f74',
    500: '#340b3f',
    950: '#000000',
  },
}
SCSS
$custom: #340b3f;
$custom-light: #6e4f74;
$custom-dark: #000000;
JSON
{
  "hex": "#340b3f",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 63
  },
  "hsl": {
    "h": 287.308,
    "s": 70.27,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24959,
    "c": 0.09865,
    "h": 318.2
  },
  "luminance": 0.01328
}

Semantic roles & 50–950 ramp

primary
#340B3F
secondary
#3B7C2A
accent
#ED3B60
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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