#34186C#34186C

#34186C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.135 H 291.6°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#34186C
RGBrgb(52, 24, 108)
HSLhsl(260, 64%, 26%)
HSVhsv(260, 78%, 42%)
CMYKcmyk(51.9%, 77.8%, 0%, 57.6%)
CIE-LABlab(17.76, 34.66, -43.75)
CIE-LCHlch(17.76, 55.81, 308.39°)
OKLaboklab(30.66% 0.0497 -0.1256)
OKLCHoklch(30.66% 0.135 291.6)
XYZxyz(4.4488, 2.4659, 14.4260)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34186C #506C18
analogous
#18266C #34186C #5E186C
triadic
#34186C #6C3418 #186C34
tetradic
#34186C #6C1826 #506C18 #186C5E
square
#34186C #6C1826 #506C18 #186C5E
split-complementary
#34186C #6C5E18 #266C18
monochromatic
#0C0619 #1C0D3A #34186C #4C239E #642ED0

Accessibility & contrast

On white

14.06
#34186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#34186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34186C
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34186C#FFFFFF#000000##FFFFFF
##34186C1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002A6A
Tritanopia (blue-blind)
#222F40
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #34186c;
/* rgb */ color: rgb(52, 24, 108);
/* oklch */ color: oklch(30.7% 0.135 291.6);
Tailwind
colors: {
  custom: {
    50: '#725897',
    500: '#34186c',
    950: '#000000',
  },
}
SCSS
$custom: #34186c;
$custom-light: #725897;
$custom-dark: #000000;
JSON
{
  "hex": "#34186c",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 260,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30656,
    "c": 0.13502,
    "h": 291.6
  },
  "luminance": 0.02466
}

Semantic roles & 50–950 ramp

primary
#34186C
secondary
#81A23E
accent
#E741AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #34186C

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

Preview Lab → · Contrast checker → · Palette generator →

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