#34186D#34186D

#34186D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.136 H 291.2°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#34186D
RGBrgb(52, 24, 109)
HSLhsl(260, 64%, 26%)
HSVhsv(260, 78%, 43%)
CMYKcmyk(52.3%, 78%, 0%, 57.3%)
CIE-LABlab(17.86, 34.96, -44.24)
CIE-LCHlch(17.86, 56.38, 308.32°)
OKLaboklab(30.75% 0.0494 -0.127)
OKLCHoklch(30.75% 0.136 291.2)
XYZxyz(4.5023, 2.4873, 14.7079)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34186D #516D18
analogous
#18266D #34186D #5E186D
triadic
#34186D #6D3418 #186D34
tetradic
#34186D #6D1826 #516D18 #186D5E
square
#34186D #6D1826 #516D18 #186D5E
split-complementary
#34186D #6D5E18 #266D18
monochromatic
#0C0619 #1C0D3B #34186D #4C239F #642ED1

Accessibility & contrast

On white

14.02
#34186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#34186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34186D
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34186D#FFFFFF#000000##FFFFFF
##34186D1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#212F41
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #34186d;
/* rgb */ color: rgb(52, 24, 109);
/* oklch */ color: oklch(30.8% 0.136 291.2);
Tailwind
colors: {
  custom: {
    50: '#725898',
    500: '#34186d',
    950: '#000000',
  },
}
SCSS
$custom: #34186d;
$custom-light: #725898;
$custom-dark: #000000;
JSON
{
  "hex": "#34186d",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 259.765,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30754,
    "c": 0.13628,
    "h": 291.2
  },
  "luminance": 0.02487
}

Semantic roles & 50–950 ramp

primary
#34186D
secondary
#82A33E
accent
#E741B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #34186D

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

Preview Lab → · Contrast checker → · Palette generator →

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