#31177F#31177F

#31177F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.160 H 284.4°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#31177F
RGBrgb(49, 23, 127)
HSLhsl(255, 69%, 29%)
HSVhsv(255, 82%, 50%)
CMYKcmyk(61.4%, 81.9%, 0%, 50.2%)
CIE-LABlab(19.21, 40.46, -53.60)
CIE-LCHlch(19.21, 67.15, 307.05°)
OKLaboklab(32.19% 0.0398 -0.1545)
OKLCHoklch(32.19% 0.16 284.4)
XYZxyz(5.4026, 2.7977, 20.3299)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31177F #657F17
analogous
#17317F #31177F #65177F
triadic
#31177F #7F3117 #177F31
tetradic
#31177F #7F1731 #657F17 #177F65
square
#31177F #7F1731 #657F17 #177F65
split-complementary
#31177F #7F6517 #317F17
monochromatic
#0A051A #1D0E4B #31177F #4520B3 #5F36DB

Accessibility & contrast

On white

13.46
#31177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#31177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31177F
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31177F#FFFFFF#000000##FFFFFF
##31177F1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #31177f;
/* rgb */ color: rgb(49, 23, 127);
/* oklch */ color: oklch(32.2% 0.160 284.4);
Tailwind
colors: {
  custom: {
    50: '#7458a5',
    500: '#31177f',
    950: '#000000',
  },
}
SCSS
$custom: #31177f;
$custom-light: #7458a5;
$custom-dark: #000000;
JSON
{
  "hex": "#31177f",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 255,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32186,
    "c": 0.15951,
    "h": 284.4
  },
  "luminance": 0.02798
}

Semantic roles & 50–950 ramp

primary
#31177F
secondary
#96B43E
accent
#EC3CC0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #31177F

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

Preview Lab → · Contrast checker → · Palette generator →

#31177F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva