#34167D#34167D

#34167D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.158 H 287.0°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#34167D
RGBrgb(52, 22, 125)
HSLhsl(257, 70%, 29%)
HSVhsv(257, 82%, 49%)
CMYKcmyk(58.4%, 82.4%, 0%, 51%)
CIE-LABlab(19.16, 40.71, -52.41)
CIE-LCHlch(19.16, 66.36, 307.84°)
OKLaboklab(32.16% 0.046 -0.1509)
OKLCHoklch(32.16% 0.158 287)
XYZxyz(5.4036, 2.7843, 19.6507)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34167D #5F7D16
analogous
#162C7D #34167D #68167D
triadic
#34167D #7D3416 #167D34
tetradic
#34167D #7D162C #5F7D16 #167D68
square
#34167D #7D162C #5F7D16 #167D68
split-complementary
#34167D #7D6816 #2C7D16
monochromatic
#0B051A #1E0D49 #34167D #4A1FB1 #6432DB

Accessibility & contrast

On white

13.49
#34167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#34167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34167D
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34167D#FFFFFF#000000##FFFFFF
##34167D1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#12354A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #34167d;
/* rgb */ color: rgb(52, 22, 125);
/* oklch */ color: oklch(32.2% 0.158 287.0);
Tailwind
colors: {
  custom: {
    50: '#7558a4',
    500: '#34167d',
    950: '#000000',
  },
}
SCSS
$custom: #34167d;
$custom-light: #7558a4;
$custom-dark: #000000;
JSON
{
  "hex": "#34167d",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 257.476,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32159,
    "c": 0.15775,
    "h": 287
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#34167D
secondary
#90B23D
accent
#ED3BB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34167D

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

Preview Lab → · Contrast checker → · Palette generator →

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