#34186F#34186F

#34186F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.139 H 290.6°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#34186F
RGBrgb(52, 24, 111)
HSLhsl(259, 64%, 26%)
HSVhsv(259, 78%, 44%)
CMYKcmyk(53.2%, 78.4%, 0%, 56.5%)
CIE-LABlab(18.06, 35.56, -45.22)
CIE-LCHlch(18.06, 57.52, 308.18°)
OKLaboklab(30.95% 0.0488 -0.1299)
OKLCHoklch(30.95% 0.139 290.6)
XYZxyz(4.6112, 2.5308, 15.2814)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34186F #536F18
analogous
#18286F #34186F #60186F
triadic
#34186F #6F3418 #186F34
tetradic
#34186F #6F1828 #536F18 #186F60
square
#34186F #6F1828 #536F18 #186F60
split-complementary
#34186F #6F6018 #286F18
monochromatic
#0C0519 #1C0D3D #34186F #4C23A1 #642FD2

Accessibility & contrast

On white

13.94
#34186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#34186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34186F
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34186F#FFFFFF#000000##FFFFFF
##34186F1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#1F3042
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #34186f;
/* rgb */ color: rgb(52, 24, 111);
/* oklch */ color: oklch(31.0% 0.139 290.6);
Tailwind
colors: {
  custom: {
    50: '#735899',
    500: '#34186f',
    950: '#000000',
  },
}
SCSS
$custom: #34186f;
$custom-light: #735899;
$custom-dark: #000000;
JSON
{
  "hex": "#34186f",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 259.31,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30953,
    "c": 0.13875,
    "h": 290.6
  },
  "luminance": 0.02531
}

Semantic roles & 50–950 ramp

primary
#34186F
secondary
#84A53E
accent
#E740B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #34186F

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

Preview Lab → · Contrast checker → · Palette generator →

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