#3B177E#3B177E

#3B177E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.158 H 291.0°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#3B177E
RGBrgb(59, 23, 126)
HSLhsl(261, 69%, 29%)
HSVhsv(261, 82%, 49%)
CMYKcmyk(53.2%, 81.7%, 0%, 50.6%)
CIE-LABlab(20.24, 41.49, -51.24)
CIE-LCHlch(20.24, 65.93, 309.00°)
OKLaboklab(33.13% 0.0565 -0.1472)
OKLCHoklch(33.13% 0.158 291)
XYZxyz(5.8748, 3.0487, 20.0135)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B177E #5A7E17
analogous
#17267E #3B177E #6F177E
triadic
#3B177E #7E3B17 #177E3B
tetradic
#3B177E #7E1726 #5A7E17 #177E6F
square
#3B177E #7E1726 #5A7E17 #177E6F
split-complementary
#3B177E #7E6F17 #267E17
monochromatic
#0C051A #230E4A #3B177E #5320B2 #6F35DA

Accessibility & contrast

On white

13.05
#3B177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3B177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B177E
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B177E#FFFFFF#000000##FFFFFF
##3B177E1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#23354B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3b177e;
/* rgb */ color: rgb(59, 23, 126);
/* oklch */ color: oklch(33.1% 0.158 291.0);
Tailwind
colors: {
  custom: {
    50: '#7959a4',
    500: '#3b177e',
    950: '#000000',
  },
}
SCSS
$custom: #3b177e;
$custom-light: #7959a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3b177e",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 260.971,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3313,
    "c": 0.1577,
    "h": 291
  },
  "luminance": 0.03049
}

Semantic roles & 50–950 ramp

primary
#3B177E
secondary
#8AB33E
accent
#EC3CAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B177E

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

Preview Lab → · Contrast checker → · Palette generator →

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