#31177C#31177C

#31177C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.156 H 285.2°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#31177C
RGBrgb(49, 23, 124)
HSLhsl(255, 69%, 29%)
HSVhsv(255, 81%, 49%)
CMYKcmyk(60.5%, 81.5%, 0%, 51.4%)
CIE-LABlab(18.89, 39.55, -52.22)
CIE-LCHlch(18.89, 65.51, 307.14°)
OKLaboklab(31.86% 0.0408 -0.1505)
OKLCHoklch(31.86% 0.156 285.2)
XYZxyz(5.2100, 2.7207, 19.3155)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31177C #627C17
analogous
#17307C #31177C #64177C
triadic
#31177C #7C3117 #177C31
tetradic
#31177C #7C1730 #627C17 #177C64
square
#31177C #7C1730 #627C17 #177C64
split-complementary
#31177C #7C6417 #307C17
monochromatic
#0A051A #1D0D48 #31177C #4521B0 #5F34D9

Accessibility & contrast

On white

13.60
#31177C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#31177C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31177C
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31177C#FFFFFF#000000##FFFFFF
##31177C1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#063549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #31177c;
/* rgb */ color: rgb(49, 23, 124);
/* oklch */ color: oklch(31.9% 0.156 285.2);
Tailwind
colors: {
  custom: {
    50: '#7358a3',
    500: '#31177c',
    950: '#000000',
  },
}
SCSS
$custom: #31177c;
$custom-light: #7358a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31177c",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 124
  },
  "hsl": {
    "h": 255.446,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31862,
    "c": 0.15589,
    "h": 285.2
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#31177C
secondary
#93B13E
accent
#EC3CBE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #31177C

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

Preview Lab → · Contrast checker → · Palette generator →

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