#34167F#34167F

#34167F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.160 H 286.4°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#34167F
RGBrgb(52, 22, 127)
HSLhsl(257, 70%, 29%)
HSVhsv(257, 83%, 50%)
CMYKcmyk(59.1%, 82.7%, 0%, 50.2%)
CIE-LABlab(19.37, 41.30, -53.32)
CIE-LCHlch(19.37, 67.45, 307.76°)
OKLaboklab(32.37% 0.0453 -0.1536)
OKLCHoklch(32.37% 0.16 286.4)
XYZxyz(5.5327, 2.8359, 20.3304)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34167F #617F16
analogous
#162D7F #34167F #69167F
triadic
#34167F #7F3416 #167F34
tetradic
#34167F #7F162D #617F16 #167F69
square
#34167F #7F162D #617F16 #167F69
split-complementary
#34167F #7F6916 #2D7F16
monochromatic
#0B051A #1F0D4B #34167F #491FB3 #6434DC

Accessibility & contrast

On white

13.40
#34167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#34167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34167F
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34167F#FFFFFF#000000##FFFFFF
##34167F1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#0E354B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #34167f;
/* rgb */ color: rgb(52, 22, 127);
/* oklch */ color: oklch(32.4% 0.160 286.4);
Tailwind
colors: {
  custom: {
    50: '#7658a5',
    500: '#34167f',
    950: '#000000',
  },
}
SCSS
$custom: #34167f;
$custom-light: #7658a5;
$custom-dark: #000000;
JSON
{
  "hex": "#34167f",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 257.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32373,
    "c": 0.16011,
    "h": 286.4
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#34167F
secondary
#92B43D
accent
#ED3BBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34167F

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

Preview Lab → · Contrast checker → · Palette generator →

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