#34154D#34154D

#34154D is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.100 H 306.3°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#34154D
RGBrgb(52, 21, 77)
HSLhsl(273, 57%, 19%)
HSVhsv(273, 73%, 30%)
CMYKcmyk(32.5%, 72.7%, 0%, 69.8%)
CIE-LABlab(14.41, 27.34, -28.47)
CIE-LCHlch(14.41, 39.47, 313.84°)
OKLaboklab(27.41% 0.0592 -0.0807)
OKLCHoklch(27.41% 0.1 306.3)
XYZxyz(3.0236, 1.8022, 7.2083)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34154D #2E4D15
analogous
#18154D #34154D #4D154A
triadic
#34154D #4D3415 #154D34
tetradic
#34154D #4D1815 #2E4D15 #154A4D
square
#34154D #4D1815 #2E4D15 #154A4D
split-complementary
#34154D #4A4D15 #154D18
monochromatic
#100718 #14081D #34154D #54227D #752FAD

Accessibility & contrast

On white

15.44
#34154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34154D
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34154D#FFFFFF#000000##FFFFFF
##34154D1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#07254C
Tritanopia (blue-blind)
#30212F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #34154d;
/* rgb */ color: rgb(52, 21, 77);
/* oklch */ color: oklch(27.4% 0.100 306.3);
Tailwind
colors: {
  custom: {
    50: '#6e557f',
    500: '#34154d',
    950: '#000000',
  },
}
SCSS
$custom: #34154d;
$custom-light: #6e557f;
$custom-dark: #000000;
JSON
{
  "hex": "#34154d",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 273.214,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27412,
    "c": 0.10007,
    "h": 306.3
  },
  "luminance": 0.01802
}

Semantic roles & 50–950 ramp

primary
#34154D
secondary
#5B8539
accent
#E0478C
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #34154D

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

Preview Lab → · Contrast checker → · Palette generator →

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