#34185A#34185A

#34185A is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.112 H 298.6°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#34185A
RGBrgb(52, 24, 90)
HSLhsl(265, 58%, 22%)
HSVhsv(265, 73%, 35%)
CMYKcmyk(42.2%, 73.3%, 0%, 64.7%)
CIE-LABlab(16.11, 29.31, -34.54)
CIE-LCHlch(16.11, 45.30, 310.32°)
OKLaboklab(28.97% 0.0536 -0.0985)
OKLCHoklch(28.97% 0.112 298.6)
XYZxyz(3.5878, 2.1215, 9.8913)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34185A #3E5A18
analogous
#181D5A #34185A #55185A
triadic
#34185A #5A3418 #185A34
tetradic
#34185A #5A181D #3E5A18 #185A55
square
#34185A #5A181D #3E5A18 #185A55
split-complementary
#34185A #5A5518 #1D5A18
monochromatic
#0E0618 #180B2A #34185A #50258A #6C32BB

Accessibility & contrast

On white

14.74
#34185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#34185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34185A
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34185A#FFFFFF#000000##FFFFFF
##34185A1.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002759
Tritanopia (blue-blind)
#2B2837
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #34185a;
/* rgb */ color: rgb(52, 24, 90);
/* oklch */ color: oklch(29.0% 0.112 298.6);
Tailwind
colors: {
  custom: {
    50: '#6f5789',
    500: '#34185a',
    950: '#000000',
  },
}
SCSS
$custom: #34185a;
$custom-light: #6f5789;
$custom-dark: #000000;
JSON
{
  "hex": "#34185a",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 265.455,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28971,
    "c": 0.11218,
    "h": 298.6
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#34185A
secondary
#6D913D
accent
#E147A0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #34185A

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

Preview Lab → · Contrast checker → · Palette generator →

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