#34167C#34167C

#34167C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.157 H 287.2°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#34167C
RGBrgb(52, 22, 124)
HSLhsl(258, 70%, 29%)
HSVhsv(258, 82%, 49%)
CMYKcmyk(58.1%, 82.3%, 0%, 51.4%)
CIE-LABlab(19.05, 40.42, -51.95)
CIE-LCHlch(19.05, 65.82, 307.89°)
OKLaboklab(32.05% 0.0464 -0.1495)
OKLCHoklch(32.05% 0.157 287.2)
XYZxyz(5.3401, 2.7588, 19.3160)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34167C #5E7C16
analogous
#162B7C #34167C #67167C
triadic
#34167C #7C3416 #167C34
tetradic
#34167C #7C162B #5E7C16 #167C67
square
#34167C #7C162B #5E7C16 #167C67
split-complementary
#34167C #7C6716 #2B7C16
monochromatic
#0B051A #1E0D48 #34167C #4A1FB0 #6332DB

Accessibility & contrast

On white

13.53
#34167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#34167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34167C
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34167C#FFFFFF#000000##FFFFFF
##34167C1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#133449
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #34167c;
/* rgb */ color: rgb(52, 22, 124);
/* oklch */ color: oklch(32.1% 0.157 287.2);
Tailwind
colors: {
  custom: {
    50: '#7558a3',
    500: '#34167c',
    950: '#000000',
  },
}
SCSS
$custom: #34167c;
$custom-light: #7558a3;
$custom-dark: #000000;
JSON
{
  "hex": "#34167c",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 257.647,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32052,
    "c": 0.15656,
    "h": 287.2
  },
  "luminance": 0.02759
}

Semantic roles & 50–950 ramp

primary
#34167C
secondary
#8FB13D
accent
#ED3BB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34167C

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

Preview Lab → · Contrast checker → · Palette generator →

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