#3B174E#3B174E

#3B174E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.101 H 311.9°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#3B174E
RGBrgb(59, 23, 78)
HSLhsl(279, 54%, 20%)
HSVhsv(279, 71%, 31%)
CMYKcmyk(24.4%, 70.5%, 0%, 69.4%)
CIE-LABlab(15.97, 28.32, -26.60)
CIE-LCHlch(15.97, 38.85, 316.79°)
OKLaboklab(28.79% 0.0672 -0.0749)
OKLCHoklch(28.79% 0.101 311.9)
XYZxyz(3.4849, 2.0927, 7.4266)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B174E #2A4E17
analogous
#20174E #3B174E #4E1745
triadic
#3B174E #4E3B17 #174E3B
tetradic
#3B174E #4E2017 #2A4E17 #17454E
square
#3B174E #4E2017 #2A4E17 #17454E
split-complementary
#3B174E #454E17 #174E20
monochromatic
#120718 #17091F #3B174E #5F257D #8333AD

Accessibility & contrast

On white

14.80
#3B174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3B174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B174E
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B174E#FFFFFF#000000##FFFFFF
##3B174E1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002650
Deuteranopia (green-blind)
#12284D
Tritanopia (blue-blind)
#392230
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3b174e;
/* rgb */ color: rgb(59, 23, 78);
/* oklch */ color: oklch(28.8% 0.101 311.9);
Tailwind
colors: {
  custom: {
    50: '#735780',
    500: '#3b174e',
    950: '#000000',
  },
}
SCSS
$custom: #3b174e;
$custom-light: #735780;
$custom-dark: #000000;
JSON
{
  "hex": "#3b174e",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 279.273,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28785,
    "c": 0.10062,
    "h": 311.9
  },
  "luminance": 0.02093
}

Semantic roles & 50–950 ramp

primary
#3B174E
secondary
#55853C
accent
#DE4A7D
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3B174E

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

Preview Lab → · Contrast checker → · Palette generator →

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