#31176D#31176D

#31176D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.137 H 289.3°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#31176D
RGBrgb(49, 23, 109)
HSLhsl(258, 65%, 26%)
HSVhsv(258, 79%, 43%)
CMYKcmyk(55%, 78.9%, 0%, 57.3%)
CIE-LABlab(17.32, 34.99, -45.14)
CIE-LCHlch(17.32, 57.12, 307.78°)
OKLaboklab(30.29% 0.0454 -0.1297)
OKLCHoklch(30.29% 0.137 289.3)
XYZxyz(4.3325, 2.3697, 14.6941)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31176D #536D17
analogous
#17286D #31176D #5C176D
triadic
#31176D #6D3117 #176D31
tetradic
#31176D #6D1728 #536D17 #176D5C
square
#31176D #6D1728 #536D17 #176D5C
split-complementary
#31176D #6D5C17 #286D17
monochromatic
#0B0519 #1A0C3A #31176D #4822A0 #5E2CD2

Accessibility & contrast

On white

14.25
#31176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#31176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31176D
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31176D#FFFFFF#000000##FFFFFF
##31176D1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#1A2F41
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #31176d;
/* rgb */ color: rgb(49, 23, 109);
/* oklch */ color: oklch(30.3% 0.137 289.3);
Tailwind
colors: {
  custom: {
    50: '#715798',
    500: '#31176d',
    950: '#000000',
  },
}
SCSS
$custom: #31176d;
$custom-light: #715798;
$custom-dark: #000000;
JSON
{
  "hex": "#31176d",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 258.14,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3029,
    "c": 0.13745,
    "h": 289.3
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#31176D
secondary
#84A33D
accent
#E840B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #31176D

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

Preview Lab → · Contrast checker → · Palette generator →

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