#34185D#34185D

#34185D is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.116 H 297.2°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#34185D
RGBrgb(52, 24, 93)
HSLhsl(264, 59%, 23%)
HSVhsv(264, 74%, 36%)
CMYKcmyk(44.1%, 74.2%, 0%, 63.5%)
CIE-LABlab(16.37, 30.19, -36.12)
CIE-LCHlch(16.37, 47.08, 309.89°)
OKLaboklab(29.24% 0.0531 -0.1032)
OKLCHoklch(29.24% 0.116 297.2)
XYZxyz(3.7181, 2.1736, 10.5775)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34185D #415D18
analogous
#181E5D #34185D #56185D
triadic
#34185D #5D3418 #185D34
tetradic
#34185D #5D181E #415D18 #185D56
square
#34185D #5D181E #415D18 #185D56
split-complementary
#34185D #5D5618 #1E5D18
monochromatic
#0E0618 #190B2C #34185D #4F258E #6A31BE

Accessibility & contrast

On white

14.64
#34185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34185D
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34185D#FFFFFF#000000##FFFFFF
##34185D1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#2A2938
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #34185d;
/* rgb */ color: rgb(52, 24, 93);
/* oklch */ color: oklch(29.2% 0.116 297.2);
Tailwind
colors: {
  custom: {
    50: '#70578b',
    500: '#34185d',
    950: '#000000',
  },
}
SCSS
$custom: #34185d;
$custom-light: #70578b;
$custom-dark: #000000;
JSON
{
  "hex": "#34185d",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 264.348,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29239,
    "c": 0.11605,
    "h": 297.2
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#34185D
secondary
#71933D
accent
#E246A3
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34185D

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

Preview Lab → · Contrast checker → · Palette generator →

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