#34164F#34164F

#34164F is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.101 H 304.8°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#34164F
RGBrgb(52, 22, 79)
HSLhsl(272, 56%, 20%)
HSVhsv(272, 72%, 31%)
CMYKcmyk(34.2%, 72.2%, 0%, 69%)
CIE-LABlab(14.78, 27.32, -29.25)
CIE-LCHlch(14.78, 40.02, 313.04°)
OKLaboklab(27.73% 0.0577 -0.083)
OKLCHoklch(27.73% 0.101 304.8)
XYZxyz(3.1141, 1.8684, 7.5922)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34164F #314F16
analogous
#17164F #34164F #4F164E
triadic
#34164F #4F3416 #164F34
tetradic
#34164F #4F1716 #314F16 #164E4F
square
#34164F #4F1716 #314F16 #164E4F
split-complementary
#34164F #4E4F16 #164F17
monochromatic
#100718 #14091F #34164F #54237F #7331AF

Accessibility & contrast

On white

15.29
#34164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#34164F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34164F
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34164F#FFFFFF#000000##FFFFFF
##34164F1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#06254E
Tritanopia (blue-blind)
#2F2230
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #34164f;
/* rgb */ color: rgb(52, 22, 79);
/* oklch */ color: oklch(27.7% 0.101 304.8);
Tailwind
colors: {
  custom: {
    50: '#6e5581',
    500: '#34164f',
    950: '#000000',
  },
}
SCSS
$custom: #34164f;
$custom-light: #6e5581;
$custom-dark: #000000;
JSON
{
  "hex": "#34164f",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 271.579,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27727,
    "c": 0.10104,
    "h": 304.8
  },
  "luminance": 0.01868
}

Semantic roles & 50–950 ramp

primary
#34164F
secondary
#5E863A
accent
#E04890
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #34164F

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

Preview Lab → · Contrast checker → · Palette generator →

#34164F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva