#34166C#34166C

#34166C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.137 H 292.0°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#34166C
RGBrgb(52, 22, 108)
HSLhsl(261, 66%, 25%)
HSVhsv(261, 80%, 42%)
CMYKcmyk(51.9%, 79.6%, 0%, 57.6%)
CIE-LABlab(17.40, 35.70, -44.35)
CIE-LCHlch(17.40, 56.93, 308.84°)
OKLaboklab(30.4% 0.0515 -0.1273)
OKLCHoklch(30.4% 0.137 292)
XYZxyz(4.4091, 2.3864, 14.4128)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34166C #4E6C16
analogous
#16236C #34166C #5F166C
triadic
#34166C #6C3416 #166C34
tetradic
#34166C #6C1623 #4E6C16 #166C5F
square
#34166C #6C1623 #4E6C16 #166C5F
split-complementary
#34166C #6C5F16 #236C16
monochromatic
#0C0519 #1C0C39 #34166C #4C209F #652BD2

Accessibility & contrast

On white

14.21
#34166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#34166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34166C
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34166C#FFFFFF#000000##FFFFFF
##34166C1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#222E40
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #34166c;
/* rgb */ color: rgb(52, 22, 108);
/* oklch */ color: oklch(30.4% 0.137 292.0);
Tailwind
colors: {
  custom: {
    50: '#725797',
    500: '#34166c',
    950: '#000000',
  },
}
SCSS
$custom: #34166c;
$custom-light: #725797;
$custom-dark: #000000;
JSON
{
  "hex": "#34166c",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 260.93,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30398,
    "c": 0.13732,
    "h": 292
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#34166C
secondary
#7EA23C
accent
#E93FAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #34166C

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

Preview Lab → · Contrast checker → · Palette generator →

#34166C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva