#340A44#340A44

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

Color values

HEX#340A44
RGBrgb(52, 10, 68)
HSLhsl(283, 74%, 15%)
HSVhsv(283, 85%, 27%)
CMYKcmyk(23.5%, 85.3%, 0%, 73.3%)
CIE-LABlab(11.72, 30.55, -26.57)
CIE-LCHlch(11.72, 40.48, 318.99°)
OKLaboklab(25.26% 0.0739 -0.075)
OKLCHoklch(25.26% 0.105 314.6)
XYZxyz(2.5679, 1.3646, 5.5958)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A44 #1A440A
analogous
#170A44 #340A44 #440A37
triadic
#340A44 #44340A #0A4434
tetradic
#340A44 #44170A #1A440A #0A3744
square
#340A44 #44170A #1A440A #0A3744
split-complementary
#340A44 #37440A #0A4417
monochromatic
#14041B #14041B #340A44 #5D1279 #861AAF

Accessibility & contrast

On white

16.50
#340A44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A44
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A44#FFFFFF#000000##FFFFFF
##340A441.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D46
Deuteranopia (green-blind)
#072043
Tritanopia (blue-blind)
#331726
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340a44;
/* rgb */ color: rgb(52, 10, 68);
/* oklch */ color: oklch(25.3% 0.105 314.6);
Tailwind
colors: {
  custom: {
    50: '#6e4e78',
    500: '#340a44',
    950: '#000000',
  },
}
SCSS
$custom: #340a44;
$custom-light: #6e4e78;
$custom-dark: #000000;
JSON
{
  "hex": "#340a44",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 68
  },
  "hsl": {
    "h": 283.448,
    "s": 74.359,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25261,
    "c": 0.10526,
    "h": 314.6
  },
  "luminance": 0.01365
}

Semantic roles & 50–950 ramp

primary
#340A44
secondary
#418129
accent
#F1376A
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340A44

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

Preview Lab → · Contrast checker → · Palette generator →

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