#31176A#31176A

#31176A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.134 H 290.2°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#31176A
RGBrgb(49, 23, 106)
HSLhsl(259, 64%, 25%)
HSVhsv(259, 78%, 42%)
CMYKcmyk(53.8%, 78.3%, 0%, 58.4%)
CIE-LABlab(17.02, 34.08, -43.67)
CIE-LCHlch(17.02, 55.40, 307.97°)
OKLaboklab(29.99% 0.0462 -0.1255)
OKLCHoklch(29.99% 0.134 290.2)
XYZxyz(4.1738, 2.3062, 13.8581)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31176A #506A17
analogous
#17276A #31176A #5A176A
triadic
#31176A #6A3117 #176A31
tetradic
#31176A #6A1727 #506A17 #176A5A
square
#31176A #6A1727 #506A17 #176A5A
split-complementary
#31176A #6A5A17 #276A17
monochromatic
#0C0519 #1A0C38 #31176A #48229C #5F2DCF

Accessibility & contrast

On white

14.37
#31176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#31176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31176A
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31176A#FFFFFF#000000##FFFFFF
##31176A1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#1D2E3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #31176a;
/* rgb */ color: rgb(49, 23, 106);
/* oklch */ color: oklch(30.0% 0.134 290.2);
Tailwind
colors: {
  custom: {
    50: '#705795',
    500: '#31176a',
    950: '#000000',
  },
}
SCSS
$custom: #31176a;
$custom-light: #705795;
$custom-dark: #000000;
JSON
{
  "hex": "#31176a",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 258.795,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29987,
    "c": 0.1337,
    "h": 290.2
  },
  "luminance": 0.02306
}

Semantic roles & 50–950 ramp

primary
#31176A
secondary
#81A03D
accent
#E740B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #31176A

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

Preview Lab → · Contrast checker → · Palette generator →

#31176A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva