#34177D#34177D

#34177D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.157 H 286.8°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#34177D
RGBrgb(52, 23, 125)
HSLhsl(257, 69%, 29%)
HSVhsv(257, 82%, 49%)
CMYKcmyk(58.4%, 81.6%, 0%, 51%)
CIE-LABlab(19.32, 40.24, -52.14)
CIE-LCHlch(19.32, 65.86, 307.66°)
OKLaboklab(32.27% 0.0453 -0.1501)
OKLCHoklch(32.27% 0.157 286.8)
XYZxyz(5.4231, 2.8232, 19.6572)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34177D #607D17
analogous
#172D7D #34177D #67177D
triadic
#34177D #7D3417 #177D34
tetradic
#34177D #7D172D #607D17 #177D67
square
#34177D #7D172D #607D17 #177D67
split-complementary
#34177D #7D6717 #2D7D17
monochromatic
#0B051A #1E0D49 #34177D #4A21B1 #6435DA

Accessibility & contrast

On white

13.42
#34177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34177D
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34177D#FFFFFF#000000##FFFFFF
##34177D1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34177d;
/* rgb */ color: rgb(52, 23, 125);
/* oklch */ color: oklch(32.3% 0.157 286.8);
Tailwind
colors: {
  custom: {
    50: '#7558a4',
    500: '#34177d',
    950: '#000000',
  },
}
SCSS
$custom: #34177d;
$custom-light: #7558a4;
$custom-dark: #000000;
JSON
{
  "hex": "#34177d",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 257.059,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32272,
    "c": 0.15681,
    "h": 286.8
  },
  "luminance": 0.02824
}

Semantic roles & 50–950 ramp

primary
#34177D
secondary
#91B23E
accent
#EC3CBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34177D

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

Preview Lab → · Contrast checker → · Palette generator →

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