#34176E#34176E

#34176E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.139 H 291.1°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#34176E
RGBrgb(52, 23, 110)
HSLhsl(260, 65%, 26%)
HSVhsv(260, 79%, 43%)
CMYKcmyk(52.7%, 79.1%, 0%, 56.9%)
CIE-LABlab(17.78, 35.78, -45.03)
CIE-LCHlch(17.78, 57.51, 308.47°)
OKLaboklab(30.72% 0.05 -0.1293)
OKLCHoklch(30.72% 0.139 291.1)
XYZxyz(4.5362, 2.4685, 14.9863)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34176E #516E17
analogous
#17256E #34176E #5F176E
triadic
#34176E #6E3417 #176E34
tetradic
#34176E #6E1725 #516E17 #176E5F
square
#34176E #6E1725 #516E17 #176E5F
split-complementary
#34176E #6E5F17 #256E17
monochromatic
#0C0519 #1C0C3B #34176E #4C22A1 #642CD3

Accessibility & contrast

On white

14.06
#34176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#34176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34176E
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34176E#FFFFFF#000000##FFFFFF
##34176E1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34176e;
/* rgb */ color: rgb(52, 23, 110);
/* oklch */ color: oklch(30.7% 0.139 291.1);
Tailwind
colors: {
  custom: {
    50: '#725798',
    500: '#34176e',
    950: '#000000',
  },
}
SCSS
$custom: #34176e;
$custom-light: #725798;
$custom-dark: #000000;
JSON
{
  "hex": "#34176e",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 260,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30724,
    "c": 0.13865,
    "h": 291.1
  },
  "luminance": 0.02469
}

Semantic roles & 50–950 ramp

primary
#34176E
secondary
#82A43D
accent
#E83FB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #34176E

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

Preview Lab → · Contrast checker → · Palette generator →

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