#34168D#34168D

#34168D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.176 H 283.2°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#34168D
RGBrgb(52, 22, 141)
HSLhsl(255, 73%, 32%)
HSVhsv(255, 84%, 55%)
CMYKcmyk(63.1%, 84.4%, 0%, 44.7%)
CIE-LABlab(20.93, 45.39, -59.57)
CIE-LCHlch(20.93, 74.89, 307.31°)
OKLaboklab(33.91% 0.0404 -0.1718)
OKLCHoklch(33.91% 0.176 283.2)
XYZxyz(6.5093, 3.2265, 25.4739)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34168D #6F8D16
analogous
#16348D #34168D #70168D
triadic
#34168D #8D3416 #168D34
tetradic
#34168D #8D1634 #6F8D16 #168D70
square
#34168D #8D1634 #6F8D16 #168D70
split-complementary
#34168D #8D7016 #348D16
monochromatic
#0D0523 #200E58 #34168D #481EC2 #663DE1

Accessibility & contrast

On white

12.76
#34168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#34168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34168D
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34168D#FFFFFF#000000##FFFFFF
##34168D1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #34168d;
/* rgb */ color: rgb(52, 22, 141);
/* oklch */ color: oklch(33.9% 0.176 283.2);
Tailwind
colors: {
  custom: {
    50: '#7859b0',
    500: '#34168d',
    950: '#000000',
  },
}
SCSS
$custom: #34168d;
$custom-light: #7859b0;
$custom-dark: #000000;
JSON
{
  "hex": "#34168d",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 255.126,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33908,
    "c": 0.17645,
    "h": 283.2
  },
  "luminance": 0.03227
}

Semantic roles & 50–950 ramp

primary
#34168D
secondary
#A0C13E
accent
#F038C1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #34168D

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

Preview Lab → · Contrast checker → · Palette generator →

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