#34175F#34175F

#34175F is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.3% C 0.120 H 296.7°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#34175F
RGBrgb(52, 23, 95)
HSLhsl(264, 61%, 23%)
HSVhsv(264, 76%, 37%)
CMYKcmyk(45.3%, 75.8%, 0%, 62.7%)
CIE-LABlab(16.35, 31.34, -37.49)
CIE-LCHlch(16.35, 48.87, 309.89°)
OKLaboklab(29.28% 0.0538 -0.1072)
OKLCHoklch(29.28% 0.12 296.7)
XYZxyz(3.7876, 2.1690, 11.0434)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34175F #425F17
analogous
#171E5F #34175F #58175F
triadic
#34175F #5F3417 #175F34
tetradic
#34175F #5F171E #425F17 #175F58
square
#34175F #5F171E #425F17 #175F58
split-complementary
#34175F #5F5817 #1E5F17
monochromatic
#0D0619 #190B2E #34175F #4F2390 #6A2FC2

Accessibility & contrast

On white

14.65
#34175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#34175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34175F
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34175F#FFFFFF#000000##FFFFFF
##34175F1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#292939
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #34175f;
/* rgb */ color: rgb(52, 23, 95);
/* oklch */ color: oklch(29.3% 0.120 296.7);
Tailwind
colors: {
  custom: {
    50: '#70578d',
    500: '#34175f',
    950: '#000000',
  },
}
SCSS
$custom: #34175f;
$custom-light: #70578d;
$custom-dark: #000000;
JSON
{
  "hex": "#34175f",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 264.167,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29279,
    "c": 0.11996,
    "h": 296.7
  },
  "luminance": 0.02169
}

Semantic roles & 50–950 ramp

primary
#34175F
secondary
#72963C
accent
#E444A4
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34175F

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

Preview Lab → · Contrast checker → · Palette generator →

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