#340B45#340B45

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

Color values

HEX#340B45
RGBrgb(52, 11, 69)
HSLhsl(282, 73%, 16%)
HSVhsv(282, 84%, 27%)
CMYKcmyk(24.6%, 84.1%, 0%, 72.9%)
CIE-LABlab(11.95, 30.36, -26.89)
CIE-LCHlch(11.95, 40.56, 318.47°)
OKLaboklab(25.45% 0.0726 -0.076)
OKLCHoklch(25.45% 0.105 313.7)
XYZxyz(2.6098, 1.3992, 5.7617)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B45 #1C450B
analogous
#170B45 #340B45 #450B39
triadic
#340B45 #45340B #0B4534
tetradic
#340B45 #45170B #1C450B #0B3945
square
#340B45 #45170B #1C450B #0B3945
split-complementary
#340B45 #39450B #0B4517
monochromatic
#14041A #14041A #340B45 #5C137A #841CAF

Accessibility & contrast

On white

16.41
#340B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B45
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B45#FFFFFF#000000##FFFFFF
##340B451.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D47
Deuteranopia (green-blind)
#062044
Tritanopia (blue-blind)
#321827
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340b45;
/* rgb */ color: rgb(52, 11, 69);
/* oklch */ color: oklch(25.5% 0.105 313.7);
Tailwind
colors: {
  custom: {
    50: '#6e4f79',
    500: '#340b45',
    950: '#000000',
  },
}
SCSS
$custom: #340b45;
$custom-light: #6e4f79;
$custom-dark: #000000;
JSON
{
  "hex": "#340b45",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 69
  },
  "hsl": {
    "h": 282.414,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25451,
    "c": 0.10507,
    "h": 313.7
  },
  "luminance": 0.01399
}

Semantic roles & 50–950 ramp

primary
#340B45
secondary
#44812A
accent
#EF396E
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340B45

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

Preview Lab → · Contrast checker → · Palette generator →

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