#34154C#34154C

#34154C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.099 H 306.9°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#34154C
RGBrgb(52, 21, 76)
HSLhsl(274, 57%, 19%)
HSVhsv(274, 72%, 30%)
CMYKcmyk(31.6%, 72.4%, 0%, 70.2%)
CIE-LABlab(14.33, 27.06, -27.91)
CIE-LCHlch(14.33, 38.88, 314.12°)
OKLaboklab(27.33% 0.0593 -0.079)
OKLCHoklch(27.33% 0.099 306.9)
XYZxyz(2.9886, 1.7882, 7.0238)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34154C #2D4C15
analogous
#19154C #34154C #4C1549
triadic
#34154C #4C3415 #154C34
tetradic
#34154C #4C1915 #2D4C15 #15494C
square
#34154C #4C1915 #2D4C15 #15494C
split-complementary
#34154C #494C15 #154C19
monochromatic
#100718 #13081C #34154C #55227C #762FAC

Accessibility & contrast

On white

15.47
#34154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#34154C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34154C
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34154C#FFFFFF#000000##FFFFFF
##34154C1.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#09254B
Tritanopia (blue-blind)
#30212E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #34154c;
/* rgb */ color: rgb(52, 21, 76);
/* oklch */ color: oklch(27.3% 0.099 306.9);
Tailwind
colors: {
  custom: {
    50: '#6e557e',
    500: '#34154c',
    950: '#000000',
  },
}
SCSS
$custom: #34154c;
$custom-light: #6e557e;
$custom-dark: #000000;
JSON
{
  "hex": "#34154c",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 273.818,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2733,
    "c": 0.09881,
    "h": 306.9
  },
  "luminance": 0.01788
}

Semantic roles & 50–950 ramp

primary
#34154C
secondary
#5A8439
accent
#E0488A
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #34154C

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

Preview Lab → · Contrast checker → · Palette generator →

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