#34177B#34177B

#34177B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.154 H 287.3°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#34177B
RGBrgb(52, 23, 123)
HSLhsl(257, 68%, 29%)
HSVhsv(257, 81%, 48%)
CMYKcmyk(57.7%, 81.3%, 0%, 51.8%)
CIE-LABlab(19.11, 39.65, -51.21)
CIE-LCHlch(19.11, 64.77, 307.75°)
OKLaboklab(32.06% 0.046 -0.1474)
OKLCHoklch(32.06% 0.154 287.3)
XYZxyz(5.2967, 2.7726, 18.9911)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34177B #5E7B17
analogous
#172C7B #34177B #66177B
triadic
#34177B #7B3417 #177B34
tetradic
#34177B #7B172C #5E7B17 #177B66
square
#34177B #7B172C #5E7B17 #177B66
split-complementary
#34177B #7B6617 #2C7B17
monochromatic
#0B051A #1E0D47 #34177B #4A21AF #6333D9

Accessibility & contrast

On white

13.51
#34177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34177B
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34177B#FFFFFF#000000##FFFFFF
##34177B1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34177b;
/* rgb */ color: rgb(52, 23, 123);
/* oklch */ color: oklch(32.1% 0.154 287.3);
Tailwind
colors: {
  custom: {
    50: '#7558a2',
    500: '#34177b',
    950: '#000000',
  },
}
SCSS
$custom: #34177b;
$custom-light: #7558a2;
$custom-dark: #000000;
JSON
{
  "hex": "#34177b",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 257.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32061,
    "c": 0.15442,
    "h": 287.3
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#34177B
secondary
#8FB03E
accent
#EB3CB9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34177B

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

Preview Lab → · Contrast checker → · Palette generator →

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