#34167B#34167B

#34167B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.155 H 287.5°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#34167B
RGBrgb(52, 22, 123)
HSLhsl(258, 70%, 28%)
HSVhsv(258, 82%, 48%)
CMYKcmyk(57.7%, 82.1%, 0%, 51.8%)
CIE-LABlab(18.94, 40.13, -51.48)
CIE-LCHlch(18.94, 65.27, 307.93°)
OKLaboklab(31.95% 0.0467 -0.1482)
OKLCHoklch(31.95% 0.155 287.5)
XYZxyz(5.2772, 2.7337, 18.9846)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34167B #5D7B16
analogous
#162A7B #34167B #66167B
triadic
#34167B #7B3416 #167B34
tetradic
#34167B #7B162A #5D7B16 #167B66
square
#34167B #7B162A #5D7B16 #167B66
split-complementary
#34167B #7B6616 #2A7B16
monochromatic
#0B051A #1E0D47 #34167B #4A1FAF #6331DA

Accessibility & contrast

On white

13.58
#34167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34167B
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34167B#FFFFFF#000000##FFFFFF
##34167B1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#143449
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #34167b;
/* rgb */ color: rgb(52, 22, 123);
/* oklch */ color: oklch(31.9% 0.155 287.5);
Tailwind
colors: {
  custom: {
    50: '#7558a2',
    500: '#34167b',
    950: '#000000',
  },
}
SCSS
$custom: #34167b;
$custom-light: #7558a2;
$custom-dark: #000000;
JSON
{
  "hex": "#34167b",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 257.822,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31946,
    "c": 0.15538,
    "h": 287.5
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#34167B
secondary
#8EB03D
accent
#EC3BB8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34167B

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

Preview Lab → · Contrast checker → · Palette generator →

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