#3E176B#3E176B

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

Color values

HEX#3E176B
RGBrgb(62, 23, 107)
HSLhsl(268, 65%, 25%)
HSVhsv(268, 79%, 42%)
CMYKcmyk(42.1%, 78.5%, 0%, 58%)
CIE-LABlab(18.79, 36.70, -41.36)
CIE-LCHlch(18.79, 55.29, 311.59°)
OKLaboklab(31.65% 0.0671 -0.1182)
OKLCHoklch(31.65% 0.136 299.6)
XYZxyz(4.9462, 2.6984, 14.1673)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E176B #446B17
analogous
#171A6B #3E176B #68176B
triadic
#3E176B #6B3E17 #176B3E
tetradic
#3E176B #6B171A #446B17 #176B68
square
#3E176B #6B171A #446B17 #176B68
split-complementary
#3E176B #6B6817 #1A6B17
monochromatic
#0F0519 #210C39 #3E176B #5B229D #782DD0

Accessibility & contrast

On white

13.64
#3E176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E176B
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E176B#FFFFFF#000000##FFFFFF
##3E176B1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#332D40
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e176b;
/* rgb */ color: rgb(62, 23, 107);
/* oklch */ color: oklch(31.6% 0.136 299.6);
Tailwind
colors: {
  custom: {
    50: '#785896',
    500: '#3e176b',
    950: '#000000',
  },
}
SCSS
$custom: #3e176b;
$custom-light: #785896;
$custom-dark: #000000;
JSON
{
  "hex": "#3e176b",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 267.857,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31645,
    "c": 0.13588,
    "h": 299.6
  },
  "luminance": 0.02698
}

Semantic roles & 50–950 ramp

primary
#3E176B
secondary
#72A13D
accent
#E8409A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3E176B

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

Preview Lab → · Contrast checker → · Palette generator →

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