#340E53#340E53

#340E53 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.117 H 304.5°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#340E53
RGBrgb(52, 14, 83)
HSLhsl(273, 71%, 19%)
HSVhsv(273, 83%, 33%)
CMYKcmyk(37.3%, 83.1%, 0%, 67.5%)
CIE-LABlab(13.64, 32.57, -33.83)
CIE-LCHlch(13.64, 46.95, 313.91°)
OKLaboklab(27.03% 0.0663 -0.0964)
OKLCHoklch(27.03% 0.117 304.5)
XYZxyz(3.1342, 1.6687, 8.3389)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E53 #2D530E
analogous
#110E53 #340E53 #530E50
triadic
#340E53 #53340E #0E5334
tetradic
#340E53 #53110E #2D530E #0E5053
square
#340E53 #53110E #2D530E #0E5053
split-complementary
#340E53 #50530E #0E5311
monochromatic
#10041A #13051F #340E53 #551787 #7620BC

Accessibility & contrast

On white

15.74
#340E53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#340E53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340E53
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E53#FFFFFF#000000##FFFFFF
##340E531.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.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: #340e53;
/* rgb */ color: rgb(52, 14, 83);
/* oklch */ color: oklch(27.0% 0.117 304.5);
Tailwind
colors: {
  custom: {
    50: '#6f5184',
    500: '#340e53',
    950: '#000000',
  },
}
SCSS
$custom: #340e53;
$custom-light: #6f5184;
$custom-dark: #000000;
JSON
{
  "hex": "#340e53",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 83
  },
  "hsl": {
    "h": 273.043,
    "s": 71.134,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27026,
    "c": 0.11694,
    "h": 304.5
  },
  "luminance": 0.01669
}

Semantic roles & 50–950 ramp

primary
#340E53
secondary
#5A8D2F
accent
#EE3A8B
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #340E53

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

Preview Lab → · Contrast checker → · Palette generator →

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