#34186A#34186A

#34186A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.133 H 292.2°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#34186A
RGBrgb(52, 24, 106)
HSLhsl(260, 63%, 25%)
HSVhsv(260, 77%, 42%)
CMYKcmyk(50.9%, 77.4%, 0%, 58.4%)
CIE-LABlab(17.57, 34.06, -42.76)
CIE-LCHlch(17.57, 54.67, 308.54°)
OKLaboklab(30.46% 0.0502 -0.1227)
OKLCHoklch(30.46% 0.133 292.2)
XYZxyz(4.3436, 2.4238, 13.8719)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34186A #4E6A18
analogous
#18256A #34186A #5D186A
triadic
#34186A #6A3418 #186A34
tetradic
#34186A #6A1825 #4E6A18 #186A5D
square
#34186A #6A1825 #4E6A18 #186A5D
split-complementary
#34186A #6A5D18 #256A18
monochromatic
#0C0619 #1C0D38 #34186A #4C239C #652FCE

Accessibility & contrast

On white

14.14
#34186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#34186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34186A
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34186A#FFFFFF#000000##FFFFFF
##34186A1.0014.141.4814.14
#FFFFFF14.141.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002968
Tritanopia (blue-blind)
#232E3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #34186a;
/* rgb */ color: rgb(52, 24, 106);
/* oklch */ color: oklch(30.5% 0.133 292.2);
Tailwind
colors: {
  custom: {
    50: '#725895',
    500: '#34186a',
    950: '#000000',
  },
}
SCSS
$custom: #34186a;
$custom-light: #725895;
$custom-dark: #000000;
JSON
{
  "hex": "#34186a",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 260.488,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3046,
    "c": 0.13253,
    "h": 292.2
  },
  "luminance": 0.02424
}

Semantic roles & 50–950 ramp

primary
#34186A
secondary
#7EA03E
accent
#E642AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #34186A

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

Preview Lab → · Contrast checker → · Palette generator →

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