#34154A#34154A

#34154A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.096 H 308.2°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#34154A
RGBrgb(52, 21, 74)
HSLhsl(275, 56%, 19%)
HSVhsv(275, 72%, 29%)
CMYKcmyk(29.7%, 71.6%, 0%, 71%)
CIE-LABlab(14.18, 26.52, -26.78)
CIE-LCHlch(14.18, 37.69, 314.72°)
OKLaboklab(27.17% 0.0595 -0.0757)
OKLCHoklch(27.17% 0.096 308.2)
XYZxyz(2.9201, 1.7609, 6.6633)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34154A #2B4A15
analogous
#19154A #34154A #4A1545
triadic
#34154A #4A3415 #154A34
tetradic
#34154A #4A1915 #2B4A15 #15454A
square
#34154A #4A1915 #2B4A15 #15454A
split-complementary
#34154A #454A15 #154A19
monochromatic
#110718 #12071A #34154A #55237A #7730A9

Accessibility & contrast

On white

15.53
#34154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#34154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34154A
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34154A#FFFFFF#000000##FFFFFF
##34154A1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#0B2449
Tritanopia (blue-blind)
#31202D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #34154a;
/* rgb */ color: rgb(52, 21, 74);
/* oklch */ color: oklch(27.2% 0.096 308.2);
Tailwind
colors: {
  custom: {
    50: '#6e557d',
    500: '#34154a',
    950: '#000000',
  },
}
SCSS
$custom: #34154a;
$custom-light: #6e557d;
$custom-dark: #000000;
JSON
{
  "hex": "#34154a",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 275.094,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27169,
    "c": 0.09629,
    "h": 308.2
  },
  "luminance": 0.01761
}

Semantic roles & 50–950 ramp

primary
#34154A
secondary
#578239
accent
#DF4987
background
#F6F5F7
surface
#ECE8EE
border
#C7C4C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #34154A

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

Preview Lab → · Contrast checker → · Palette generator →

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