#34175E#34175E

#34175E is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.119 H 297.1°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#34175E
RGBrgb(52, 23, 94)
HSLhsl(265, 61%, 23%)
HSVhsv(265, 76%, 37%)
CMYKcmyk(44.7%, 75.5%, 0%, 63.1%)
CIE-LABlab(16.26, 31.05, -36.98)
CIE-LCHlch(16.26, 48.28, 310.02°)
OKLaboklab(29.19% 0.054 -0.1057)
OKLCHoklch(29.19% 0.119 297.1)
XYZxyz(3.7424, 2.1509, 10.8055)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34175E #415E17
analogous
#171D5E #34175E #57175E
triadic
#34175E #5E3417 #175E34
tetradic
#34175E #5E171D #415E17 #175E57
square
#34175E #5E171D #415E17 #175E57
split-complementary
#34175E #5E5717 #1D5E17
monochromatic
#0E0619 #190B2D #34175E #4F238F #6A2FC0

Accessibility & contrast

On white

14.68
#34175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34175E
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34175E#FFFFFF#000000##FFFFFF
##34175E1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#00275D
Tritanopia (blue-blind)
#292938
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #34175e;
/* rgb */ color: rgb(52, 23, 94);
/* oklch */ color: oklch(29.2% 0.119 297.1);
Tailwind
colors: {
  custom: {
    50: '#70578c',
    500: '#34175e',
    950: '#000000',
  },
}
SCSS
$custom: #34175e;
$custom-light: #70578c;
$custom-dark: #000000;
JSON
{
  "hex": "#34175e",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 264.507,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29187,
    "c": 0.1187,
    "h": 297.1
  },
  "luminance": 0.02151
}

Semantic roles & 50–950 ramp

primary
#34175E
secondary
#71953C
accent
#E444A3
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34175E

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

Preview Lab → · Contrast checker → · Palette generator →

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