#3B176F#3B176F

#3B176F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.140 H 295.9°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#3B176F
RGBrgb(59, 23, 111)
HSLhsl(265, 66%, 26%)
HSVhsv(265, 79%, 44%)
CMYKcmyk(46.8%, 79.3%, 0%, 56.5%)
CIE-LABlab(18.76, 37.26, -44.03)
CIE-LCHlch(18.76, 57.68, 310.24°)
OKLaboklab(31.65% 0.0612 -0.1261)
OKLCHoklch(31.65% 0.14 295.9)
XYZxyz(4.9785, 2.6902, 15.2928)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B176F #4B6F17
analogous
#171F6F #3B176F #67176F
triadic
#3B176F #6F3B17 #176F3B
tetradic
#3B176F #6F171F #4B6F17 #176F67
square
#3B176F #6F171F #4B6F17 #176F67
split-complementary
#3B176F #6F6717 #1F6F17
monochromatic
#0D0519 #200C3C #3B176F #5622A2 #712DD3

Accessibility & contrast

On white

13.65
#3B176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3B176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B176F
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B176F#FFFFFF#000000##FFFFFF
##3B176F1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#2D2F42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3b176f;
/* rgb */ color: rgb(59, 23, 111);
/* oklch */ color: oklch(31.6% 0.140 295.9);
Tailwind
colors: {
  custom: {
    50: '#775899',
    500: '#3b176f',
    950: '#000000',
  },
}
SCSS
$custom: #3b176f;
$custom-light: #775899;
$custom-dark: #000000;
JSON
{
  "hex": "#3b176f",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 264.545,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31645,
    "c": 0.14019,
    "h": 295.9
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#3B176F
secondary
#7AA53D
accent
#E93FA3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3B176F

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

Preview Lab → · Contrast checker → · Palette generator →

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