#3B177F#3B177F

#3B177F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.159 H 290.7°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#3B177F
RGBrgb(59, 23, 127)
HSLhsl(261, 69%, 29%)
HSVhsv(261, 82%, 50%)
CMYKcmyk(53.5%, 81.9%, 0%, 50.2%)
CIE-LABlab(20.34, 41.78, -51.70)
CIE-LCHlch(20.34, 66.47, 308.94°)
OKLaboklab(33.23% 0.0562 -0.1486)
OKLCHoklch(33.23% 0.159 290.7)
XYZxyz(5.9397, 3.0747, 20.3551)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B177F #5B7F17
analogous
#17277F #3B177F #6F177F
triadic
#3B177F #7F3B17 #177F3B
tetradic
#3B177F #7F1727 #5B7F17 #177F6F
square
#3B177F #7F1727 #5B7F17 #177F6F
split-complementary
#3B177F #7F6F17 #277F17
monochromatic
#0C051A #230E4B #3B177F #5320B3 #6F36DB

Accessibility & contrast

On white

13.00
#3B177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3B177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B177F
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B177F#FFFFFF#000000##FFFFFF
##3B177F1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#22354B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3b177f;
/* rgb */ color: rgb(59, 23, 127);
/* oklch */ color: oklch(33.2% 0.159 290.7);
Tailwind
colors: {
  custom: {
    50: '#7959a5',
    500: '#3b177f',
    950: '#000000',
  },
}
SCSS
$custom: #3b177f;
$custom-light: #7959a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3b177f",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 260.769,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33232,
    "c": 0.15886,
    "h": 290.7
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#3B177F
secondary
#8BB43E
accent
#EC3CAF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B177F

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

Preview Lab → · Contrast checker → · Palette generator →

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