#34104C#34104C

#34104C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.106 H 308.1°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#34104C
RGBrgb(52, 16, 76)
HSLhsl(276, 65%, 18%)
HSVhsv(276, 79%, 30%)
CMYKcmyk(31.6%, 78.9%, 0%, 70.2%)
CIE-LABlab(13.37, 29.76, -29.47)
CIE-LCHlch(13.37, 41.89, 315.28°)
OKLaboklab(26.64% 0.0657 -0.0836)
OKLCHoklch(26.64% 0.106 308.1)
XYZxyz(2.9057, 1.6225, 6.9962)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34104C #284C10
analogous
#16104C #34104C #4C1046
triadic
#34104C #4C3410 #104C34
tetradic
#34104C #4C1610 #284C10 #10464C
square
#34104C #4C1610 #284C10 #10464C
split-complementary
#34104C #464C10 #104C16
monochromatic
#110519 #110519 #34104C #571B7F #7925B1

Accessibility & contrast

On white

15.86
#34104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#34104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34104C
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34104C#FFFFFF#000000##FFFFFF
##34104C1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214E
Deuteranopia (green-blind)
#02234B
Tritanopia (blue-blind)
#301E2C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #34104c;
/* rgb */ color: rgb(52, 16, 76);
/* oklch */ color: oklch(26.6% 0.106 308.1);
Tailwind
colors: {
  custom: {
    50: '#6e527e',
    500: '#34104c',
    950: '#000000',
  },
}
SCSS
$custom: #34104c;
$custom-light: #6e527e;
$custom-dark: #000000;
JSON
{
  "hex": "#34104c",
  "rgb": {
    "r": 52,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 276,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26638,
    "c": 0.10628,
    "h": 308.1
  },
  "luminance": 0.01622
}

Semantic roles & 50–950 ramp

primary
#34104C
secondary
#548632
accent
#E84083
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #34104C

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

Preview Lab → · Contrast checker → · Palette generator →

#34104C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva