#340F53#340F53

#340F53 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.116 H 304.3°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#340F53
RGBrgb(52, 15, 83)
HSLhsl(273, 69%, 19%)
HSVhsv(273, 82%, 33%)
CMYKcmyk(37.3%, 81.9%, 0%, 67.5%)
CIE-LABlab(13.81, 32.10, -33.56)
CIE-LCHlch(13.81, 46.44, 313.73°)
OKLaboklab(27.14% 0.0652 -0.0956)
OKLCHoklch(27.14% 0.116 304.3)
XYZxyz(3.1480, 1.6963, 8.3435)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F53 #2E530F
analogous
#120F53 #340F53 #530F50
triadic
#340F53 #53340F #0F5334
tetradic
#340F53 #53120F #2E530F #0F5053
square
#340F53 #53120F #2E530F #0F5053
split-complementary
#340F53 #50530F #0F5312
monochromatic
#10051A #14061F #340F53 #541887 #7522BB

Accessibility & contrast

On white

15.68
#340F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#340F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F53
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F53#FFFFFF#000000##FFFFFF
##340F531.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002255
Deuteranopia (green-blind)
#002352
Tritanopia (blue-blind)
#2E2030
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #340f53;
/* rgb */ color: rgb(52, 15, 83);
/* oklch */ color: oklch(27.1% 0.116 304.3);
Tailwind
colors: {
  custom: {
    50: '#6f5284',
    500: '#340f53',
    950: '#000000',
  },
}
SCSS
$custom: #340f53;
$custom-light: #6f5284;
$custom-dark: #000000;
JSON
{
  "hex": "#340f53",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 83
  },
  "hsl": {
    "h": 272.647,
    "s": 69.388,
    "l": 19.216
  },
  "oklch": {
    "l": 0.2714,
    "c": 0.11573,
    "h": 304.3
  },
  "luminance": 0.01696
}

Semantic roles & 50–950 ramp

primary
#340F53
secondary
#5B8D31
accent
#EC3C8C
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #340F53

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

Preview Lab → · Contrast checker → · Palette generator →

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