#340A45#340A45

#340A45 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.3% C 0.106 H 313.9°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#340A45
RGBrgb(52, 10, 69)
HSLhsl(283, 75%, 15%)
HSVhsv(283, 86%, 27%)
CMYKcmyk(24.6%, 85.5%, 0%, 72.9%)
CIE-LABlab(11.80, 30.79, -27.13)
CIE-LCHlch(11.80, 41.04, 318.61°)
OKLaboklab(25.35% 0.0737 -0.0767)
OKLCHoklch(25.35% 0.106 313.9)
XYZxyz(2.5987, 1.3769, 5.7579)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A45 #1B450A
analogous
#160A45 #340A45 #450A38
triadic
#340A45 #45340A #0A4534
tetradic
#340A45 #45160A #1B450A #0A3845
square
#340A45 #45160A #1B450A #0A3845
split-complementary
#340A45 #38450A #0A4516
monochromatic
#14041B #14041B #340A45 #5C127A #8519B0

Accessibility & contrast

On white

16.47
#340A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A45
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A45#FFFFFF#000000##FFFFFF
##340A451.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340a45;
/* rgb */ color: rgb(52, 10, 69);
/* oklch */ color: oklch(25.3% 0.106 313.9);
Tailwind
colors: {
  custom: {
    50: '#6e4f79',
    500: '#340a45',
    950: '#000000',
  },
}
SCSS
$custom: #340a45;
$custom-light: #6e4f79;
$custom-dark: #000000;
JSON
{
  "hex": "#340a45",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 69
  },
  "hsl": {
    "h": 282.712,
    "s": 74.684,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25346,
    "c": 0.10631,
    "h": 313.9
  },
  "luminance": 0.01377
}

Semantic roles & 50–950 ramp

primary
#340A45
secondary
#428229
accent
#F1366C
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340A45

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

Preview Lab → · Contrast checker → · Palette generator →

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