#340D45#340D45

#340D45 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.7% C 0.102 H 313.4°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#340D45
RGBrgb(52, 13, 69)
HSLhsl(282, 68%, 16%)
HSVhsv(282, 81%, 27%)
CMYKcmyk(24.6%, 81.2%, 0%, 72.9%)
CIE-LABlab(12.27, 29.45, -26.38)
CIE-LCHlch(12.27, 39.53, 318.15°)
OKLaboklab(25.68% 0.0704 -0.0745)
OKLCHoklch(25.68% 0.102 313.4)
XYZxyz(2.6341, 1.4477, 5.7697)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D45 #1E450D
analogous
#180D45 #340D45 #450D3A
triadic
#340D45 #45340D #0D4534
tetradic
#340D45 #45180D #1E450D #0D3A45
square
#340D45 #45180D #1E450D #0D3A45
split-complementary
#340D45 #3A450D #0D4518
monochromatic
#13051A #13051A #340D45 #5B1778 #8220AC

Accessibility & contrast

On white

16.28
#340D45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340D45
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D45#FFFFFF#000000##FFFFFF
##340D451.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#082144
Tritanopia (blue-blind)
#321928
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340d45;
/* rgb */ color: rgb(52, 13, 69);
/* oklch */ color: oklch(25.7% 0.102 313.4);
Tailwind
colors: {
  custom: {
    50: '#6e5079',
    500: '#340d45',
    950: '#000000',
  },
}
SCSS
$custom: #340d45;
$custom-light: #6e5079;
$custom-dark: #000000;
JSON
{
  "hex": "#340d45",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 69
  },
  "hsl": {
    "h": 281.786,
    "s": 68.293,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25678,
    "c": 0.10244,
    "h": 313.4
  },
  "luminance": 0.01448
}

Semantic roles & 50–950 ramp

primary
#340D45
secondary
#47802D
accent
#EB3D72
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340D45

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

Preview Lab → · Contrast checker → · Palette generator →

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