#34034E#34034E

#34034E is a dark, vivid violet. Relative luminance 0.013; OKLCH L 25.5% C 0.124 H 309.2°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#34034E
RGBrgb(52, 3, 78)
HSLhsl(279, 93%, 16%)
HSVhsv(279, 96%, 31%)
CMYKcmyk(33.3%, 96.2%, 0%, 69.4%)
CIE-LABlab(11.59, 35.94, -33.75)
CIE-LCHlch(11.59, 49.30, 316.80°)
OKLaboklab(25.45% 0.0782 -0.096)
OKLCHoklch(25.45% 0.124 309.2)
XYZxyz(2.8236, 1.3453, 7.3172)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34034E #1D4E03
analogous
#0E034E #34034E #4E0342
triadic
#34034E #4E3403 #034E34
tetradic
#34034E #4E0E03 #1D4E03 #03424E
square
#34034E #4E0E03 #1D4E03 #03424E
split-complementary
#34034E #424E03 #034E0E
monochromatic
#14011D #14011D #34034E #5B0589 #8308C4

Accessibility & contrast

On white

16.55
#34034E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#34034E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34034E
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34034E#FFFFFF#000000##FFFFFF
##34034E1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D50
Deuteranopia (green-blind)
#001F4D
Tritanopia (blue-blind)
#30182B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #34034e;
/* rgb */ color: rgb(52, 3, 78);
/* oklch */ color: oklch(25.5% 0.124 309.2);
Tailwind
colors: {
  custom: {
    50: '#704c80',
    500: '#34034e',
    950: '#000000',
  },
}
SCSS
$custom: #34034e;
$custom-light: #704c80;
$custom-dark: #000000;
JSON
{
  "hex": "#34034e",
  "rgb": {
    "r": 52,
    "g": 3,
    "b": 78
  },
  "hsl": {
    "h": 279.2,
    "s": 92.593,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25452,
    "c": 0.12382,
    "h": 309.2
  },
  "luminance": 0.01345
}

Semantic roles & 50–950 ramp

primary
#34034E
secondary
#458E1E
accent
#FF2973
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08010A
muted
#7B777C

Preview Lab

Preview with #34034E

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

Preview Lab → · Contrast checker → · Palette generator →

#34034E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva