#34185B#34185B

#34185B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.1% C 0.113 H 298.1°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#34185B
RGBrgb(52, 24, 91)
HSLhsl(265, 58%, 23%)
HSVhsv(265, 74%, 36%)
CMYKcmyk(42.9%, 73.6%, 0%, 64.3%)
CIE-LABlab(16.20, 29.61, -35.07)
CIE-LCHlch(16.20, 45.90, 310.17°)
OKLaboklab(29.06% 0.0535 -0.1001)
OKLCHoklch(29.06% 0.113 298.1)
XYZxyz(3.6307, 2.1386, 10.1170)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34185B #3F5B18
analogous
#181D5B #34185B #56185B
triadic
#34185B #5B3418 #185B34
tetradic
#34185B #5B181D #3F5B18 #185B56
square
#34185B #5B181D #3F5B18 #185B56
split-complementary
#34185B #5B5618 #1D5B18
monochromatic
#0E0618 #180B2B #34185B #50258B #6B32BC

Accessibility & contrast

On white

14.71
#34185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34185B
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34185B#FFFFFF#000000##FFFFFF
##34185B1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#2B2837
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #34185b;
/* rgb */ color: rgb(52, 24, 91);
/* oklch */ color: oklch(29.1% 0.113 298.1);
Tailwind
colors: {
  custom: {
    50: '#6f578a',
    500: '#34185b',
    950: '#000000',
  },
}
SCSS
$custom: #34185b;
$custom-light: #6f578a;
$custom-dark: #000000;
JSON
{
  "hex": "#34185b",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 265.075,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.2906,
    "c": 0.11348,
    "h": 298.1
  },
  "luminance": 0.02139
}

Semantic roles & 50–950 ramp

primary
#34185B
secondary
#6E923D
accent
#E146A1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34185B

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

Preview Lab → · Contrast checker → · Palette generator →

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