#34155A#34155A

#34155A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.116 H 299.4°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#34155A
RGBrgb(52, 21, 90)
HSLhsl(267, 62%, 22%)
HSVhsv(267, 77%, 35%)
CMYKcmyk(42.2%, 76.7%, 0%, 64.7%)
CIE-LABlab(15.51, 30.99, -35.52)
CIE-LCHlch(15.51, 47.14, 311.10°)
OKLaboklab(28.54% 0.0571 -0.1014)
OKLCHoklch(28.54% 0.116 299.4)
XYZxyz(3.5293, 2.0045, 9.8718)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34155A #3B5A15
analogous
#15185A #34155A #57155A
triadic
#34155A #5A3415 #155A34
tetradic
#34155A #5A1518 #3B5A15 #155A57
square
#34155A #5A1518 #3B5A15 #155A57
split-complementary
#34155A #5A5715 #185A15
monochromatic
#0E0619 #170928 #34155A #51218C #6D2CBD

Accessibility & contrast

On white

14.99
#34155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#34155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34155A
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34155A#FFFFFF#000000##FFFFFF
##34155A1.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#2B2636
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #34155a;
/* rgb */ color: rgb(52, 21, 90);
/* oklch */ color: oklch(28.5% 0.116 299.4);
Tailwind
colors: {
  custom: {
    50: '#705589',
    500: '#34155a',
    950: '#000000',
  },
}
SCSS
$custom: #34155a;
$custom-light: #705589;
$custom-dark: #000000;
JSON
{
  "hex": "#34155a",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 266.957,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28542,
    "c": 0.11637,
    "h": 299.4
  },
  "luminance": 0.02005
}

Semantic roles & 50–950 ramp

primary
#34155A
secondary
#6A9239
accent
#E5439C
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #34155A

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

Preview Lab → · Contrast checker → · Palette generator →

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