#4C345F#4C345F

#4C345F is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.2% C 0.077 H 308.8°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#4C345F
RGBrgb(76, 52, 95)
HSLhsl(273, 29%, 29%)
HSVhsv(273, 45%, 37%)
CMYKcmyk(20%, 45.3%, 0%, 62.7%)
CIE-LABlab(26.21, 20.12, -21.55)
CIE-LCHlch(26.21, 29.48, 313.03°)
OKLaboklab(37.21% 0.0481 -0.0598)
OKLCHoklch(37.21% 0.077 308.8)
XYZxyz(6.2737, 4.8188, 11.4239)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C345F #475F34
analogous
#37345F #4C345F #5F345D
triadic
#4C345F #5F4C34 #345F4C
tetradic
#4C345F #5F3734 #475F34 #345D5F
square
#4C345F #5F3734 #475F34 #345D5F
split-complementary
#4C345F #5D5F34 #345F37
monochromatic
#100B14 #2C1E37 #4C345F #6C4A87 #8B64AA

Accessibility & contrast

On white

10.69
#4C345F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4C345F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C345F
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C345F#FFFFFF#000000##FFFFFF
##4C345F1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3D61
Deuteranopia (green-blind)
#303E5E
Tritanopia (blue-blind)
#4A3B45
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c345f;
/* rgb */ color: rgb(76, 52, 95);
/* oklch */ color: oklch(37.2% 0.077 308.8);
Tailwind
colors: {
  custom: {
    50: '#7f6c8c',
    500: '#4c345f',
    950: '#000000',
  },
}
SCSS
$custom: #4c345f;
$custom-light: #7f6c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c345f",
  "rgb": {
    "r": 76,
    "g": 52,
    "b": 95
  },
  "hsl": {
    "h": 273.488,
    "s": 29.252,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37205,
    "c": 0.07679,
    "h": 308.8
  },
  "luminance": 0.04819
}

Semantic roles & 50–950 ramp

primary
#4C345F
secondary
#75905F
accent
#C6628E
background
#F7F6F8
surface
#EEEBF0
border
#C9C6CB
text
#0A070C
muted
#7C7A7D

Preview Lab

Preview with #4C345F

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

Preview Lab → · Contrast checker → · Palette generator →

#4C345F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva