#34168F#34168F

#34168F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.179 H 282.8°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#34168F
RGBrgb(52, 22, 143)
HSLhsl(255, 73%, 32%)
HSVhsv(255, 85%, 56%)
CMYKcmyk(63.6%, 84.6%, 0%, 43.9%)
CIE-LABlab(21.16, 45.97, -60.44)
CIE-LCHlch(21.16, 75.93, 307.26°)
OKLaboklab(34.13% 0.0397 -0.1743)
OKLCHoklch(34.13% 0.179 282.8)
XYZxyz(6.6595, 3.2866, 26.2647)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34168F #718F16
analogous
#16358F #34168F #71168F
triadic
#34168F #8F3416 #168F34
tetradic
#34168F #8F1635 #718F16 #168F71
square
#34168F #8F1635 #718F16 #168F71
split-complementary
#34168F #8F7116 #358F16
monochromatic
#0D0625 #210E5A #34168F #471EC4 #673EE1

Accessibility & contrast

On white

12.67
#34168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#34168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34168F
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34168F#FFFFFF#000000##FFFFFF
##34168F1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #34168f;
/* rgb */ color: rgb(52, 22, 143);
/* oklch */ color: oklch(34.1% 0.179 282.8);
Tailwind
colors: {
  custom: {
    50: '#7959b1',
    500: '#34168f',
    950: '#000000',
  },
}
SCSS
$custom: #34168f;
$custom-light: #7959b1;
$custom-dark: #000000;
JSON
{
  "hex": "#34168f",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 254.876,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34131,
    "c": 0.17876,
    "h": 282.8
  },
  "luminance": 0.03287
}

Semantic roles & 50–950 ramp

primary
#34168F
secondary
#A1C13F
accent
#F038C2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #34168F

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

Preview Lab → · Contrast checker → · Palette generator →

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