#3C175E#3C175E

#3C175E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.120 H 303.8°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#3C175E
RGBrgb(60, 23, 94)
HSLhsl(271, 61%, 23%)
HSVhsv(271, 76%, 37%)
CMYKcmyk(36.2%, 75.5%, 0%, 63.1%)
CIE-LABlab(17.37, 32.77, -35.11)
CIE-LCHlch(17.37, 48.03, 313.02°)
OKLaboklab(30.23% 0.0668 -0.0999)
OKLCHoklch(30.23% 0.12 303.8)
XYZxyz(4.1898, 2.3816, 10.8265)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C175E #395E17
analogous
#19175E #3C175E #5E175C
triadic
#3C175E #5E3C17 #175E3C
tetradic
#3C175E #5E1917 #395E17 #175C5E
square
#3C175E #5E1917 #395E17 #175C5E
split-complementary
#3C175E #5C5E17 #175E19
monochromatic
#100619 #1D0B2D #3C175E #5B238F #7B2FC0

Accessibility & contrast

On white

14.22
#3C175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3C175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C175E
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C175E#FFFFFF#000000##FFFFFF
##3C175E1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#352838
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3c175e;
/* rgb */ color: rgb(60, 23, 94);
/* oklch */ color: oklch(30.2% 0.120 303.8);
Tailwind
colors: {
  custom: {
    50: '#75588c',
    500: '#3c175e',
    950: '#000000',
  },
}
SCSS
$custom: #3c175e;
$custom-light: #75588c;
$custom-dark: #000000;
JSON
{
  "hex": "#3c175e",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 271.268,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30225,
    "c": 0.12016,
    "h": 303.8
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#3C175E
secondary
#67953C
accent
#E44491
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3C175E

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

Preview Lab → · Contrast checker → · Palette generator →

#3C175E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva