#34186E#34186E

#34186E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.138 H 290.9°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#34186E
RGBrgb(52, 24, 110)
HSLhsl(260, 64%, 26%)
HSVhsv(260, 78%, 43%)
CMYKcmyk(52.7%, 78.2%, 0%, 56.9%)
CIE-LABlab(17.96, 35.26, -44.73)
CIE-LCHlch(17.96, 56.96, 308.25°)
OKLaboklab(30.85% 0.0491 -0.1284)
OKLCHoklch(30.85% 0.138 290.9)
XYZxyz(4.5565, 2.5089, 14.9930)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34186E #526E18
analogous
#18276E #34186E #5F186E
triadic
#34186E #6E3418 #186E34
tetradic
#34186E #6E1827 #526E18 #186E5F
square
#34186E #6E1827 #526E18 #186E5F
split-complementary
#34186E #6E5F18 #276E18
monochromatic
#0C0519 #1C0D3C #34186E #4C23A0 #642FD2

Accessibility & contrast

On white

13.98
#34186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34186E
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34186E#FFFFFF#000000##FFFFFF
##34186E1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#202F42
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #34186e;
/* rgb */ color: rgb(52, 24, 110);
/* oklch */ color: oklch(30.9% 0.138 290.9);
Tailwind
colors: {
  custom: {
    50: '#725898',
    500: '#34186e',
    950: '#000000',
  },
}
SCSS
$custom: #34186e;
$custom-light: #725898;
$custom-dark: #000000;
JSON
{
  "hex": "#34186e",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 259.535,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30853,
    "c": 0.13751,
    "h": 290.9
  },
  "luminance": 0.02509
}

Semantic roles & 50–950 ramp

primary
#34186E
secondary
#83A43E
accent
#E741B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #34186E

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

Preview Lab → · Contrast checker → · Palette generator →

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