#34155F#34155F

#34155F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.123 H 297.2°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#34155F
RGBrgb(52, 21, 95)
HSLhsl(265, 64%, 23%)
HSVhsv(265, 78%, 37%)
CMYKcmyk(45.3%, 77.9%, 0%, 62.7%)
CIE-LABlab(15.97, 32.43, -38.12)
CIE-LCHlch(15.97, 50.05, 310.38°)
OKLaboklab(29.01% 0.056 -0.109)
OKLCHoklch(29.01% 0.123 297.2)
XYZxyz(3.7494, 2.0925, 11.0306)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34155F #405F15
analogous
#151B5F #34155F #59155F
triadic
#34155F #5F3415 #155F34
tetradic
#34155F #5F151B #405F15 #155F59
square
#34155F #5F151B #405F15 #155F59
split-complementary
#34155F #5F5915 #1B5F15
monochromatic
#0E0619 #190A2D #34155F #4F2091 #6B2BC3

Accessibility & contrast

On white

14.80
#34155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#34155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34155F
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34155F#FFFFFF#000000##FFFFFF
##34155F1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#292838
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #34155f;
/* rgb */ color: rgb(52, 21, 95);
/* oklch */ color: oklch(29.0% 0.123 297.2);
Tailwind
colors: {
  custom: {
    50: '#70568d',
    500: '#34155f',
    950: '#000000',
  },
}
SCSS
$custom: #34155f;
$custom-light: #70568d;
$custom-dark: #000000;
JSON
{
  "hex": "#34155f",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 265.135,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29006,
    "c": 0.12255,
    "h": 297.2
  },
  "luminance": 0.02093
}

Semantic roles & 50–950 ramp

primary
#34155F
secondary
#6F963A
accent
#E741A1
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34155F

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

Preview Lab → · Contrast checker → · Palette generator →

#34155F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva