#34185C#34185C

#34185C is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.115 H 297.7°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#34185C
RGBrgb(52, 24, 92)
HSLhsl(265, 59%, 23%)
HSVhsv(265, 74%, 36%)
CMYKcmyk(43.5%, 73.9%, 0%, 63.9%)
CIE-LABlab(16.29, 29.90, -35.60)
CIE-LCHlch(16.29, 46.49, 310.03°)
OKLaboklab(29.15% 0.0533 -0.1016)
OKLCHoklch(29.15% 0.115 297.7)
XYZxyz(3.6741, 2.1560, 10.3457)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34185C #405C18
analogous
#181E5C #34185C #56185C
triadic
#34185C #5C3418 #185C34
tetradic
#34185C #5C181E #405C18 #185C56
square
#34185C #5C181E #405C18 #185C56
split-complementary
#34185C #5C5618 #1E5C18
monochromatic
#0E0618 #190B2B #34185C #4F258D #6B31BD

Accessibility & contrast

On white

14.67
#34185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#34185C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34185C
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34185C#FFFFFF#000000##FFFFFF
##34185C1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#2A2838
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #34185c;
/* rgb */ color: rgb(52, 24, 92);
/* oklch */ color: oklch(29.1% 0.115 297.7);
Tailwind
colors: {
  custom: {
    50: '#70578b',
    500: '#34185c',
    950: '#000000',
  },
}
SCSS
$custom: #34185c;
$custom-light: #70578b;
$custom-dark: #000000;
JSON
{
  "hex": "#34185c",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 264.706,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29149,
    "c": 0.11476,
    "h": 297.7
  },
  "luminance": 0.02156
}

Semantic roles & 50–950 ramp

primary
#34185C
secondary
#6F933D
accent
#E246A2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34185C

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

Preview Lab → · Contrast checker → · Palette generator →

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