#34154B#34154B

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

Color values

HEX#34154B
RGBrgb(52, 21, 75)
HSLhsl(274, 56%, 19%)
HSVhsv(274, 72%, 29%)
CMYKcmyk(30.7%, 72%, 0%, 70.6%)
CIE-LABlab(14.26, 26.79, -27.35)
CIE-LCHlch(14.26, 38.28, 314.41°)
OKLaboklab(27.25% 0.0594 -0.0774)
OKLCHoklch(27.25% 0.098 307.5)
XYZxyz(2.9541, 1.7744, 6.8421)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34154B #2C4B15
analogous
#19154B #34154B #4B1547
triadic
#34154B #4B3415 #154B34
tetradic
#34154B #4B1915 #2C4B15 #15474B
square
#34154B #4B1915 #2C4B15 #15474B
split-complementary
#34154B #474B15 #154B19
monochromatic
#110718 #13081B #34154B #55227B #7630AB

Accessibility & contrast

On white

15.50
#34154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34154B
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34154B#FFFFFF#000000##FFFFFF
##34154B1.0015.501.3515.50
#FFFFFF15.501.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#0A244A
Tritanopia (blue-blind)
#30202D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #34154b;
/* rgb */ color: rgb(52, 21, 75);
/* oklch */ color: oklch(27.2% 0.098 307.5);
Tailwind
colors: {
  custom: {
    50: '#6e557e',
    500: '#34154b',
    950: '#000000',
  },
}
SCSS
$custom: #34154b;
$custom-light: #6e557e;
$custom-dark: #000000;
JSON
{
  "hex": "#34154b",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 274.444,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27249,
    "c": 0.09755,
    "h": 307.5
  },
  "luminance": 0.01774
}

Semantic roles & 50–950 ramp

primary
#34154B
secondary
#588339
accent
#E04889
background
#F6F5F7
surface
#ECE8EE
border
#C7C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #34154B

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

Preview Lab → · Contrast checker → · Palette generator →

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