#31177D#31177D

#31177D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.157 H 284.9°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#31177D
RGBrgb(49, 23, 125)
HSLhsl(255, 69%, 29%)
HSVhsv(255, 82%, 49%)
CMYKcmyk(60.8%, 81.6%, 0%, 51%)
CIE-LABlab(19.00, 39.85, -52.68)
CIE-LCHlch(19.00, 66.06, 307.11°)
OKLaboklab(31.97% 0.0404 -0.1518)
OKLCHoklch(31.97% 0.157 284.9)
XYZxyz(5.2736, 2.7461, 19.6502)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31177D #637D17
analogous
#17307D #31177D #64177D
triadic
#31177D #7D3117 #177D31
tetradic
#31177D #7D1730 #637D17 #177D64
square
#31177D #7D1730 #637D17 #177D64
split-complementary
#31177D #7D6417 #307D17
monochromatic
#0A051A #1D0D49 #31177D #4521B1 #5F35DA

Accessibility & contrast

On white

13.56
#31177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#31177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31177D
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31177D#FFFFFF#000000##FFFFFF
##31177D1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#04354A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #31177d;
/* rgb */ color: rgb(49, 23, 125);
/* oklch */ color: oklch(32.0% 0.157 284.9);
Tailwind
colors: {
  custom: {
    50: '#7458a4',
    500: '#31177d',
    950: '#000000',
  },
}
SCSS
$custom: #31177d;
$custom-light: #7458a4;
$custom-dark: #000000;
JSON
{
  "hex": "#31177d",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 255.294,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31969,
    "c": 0.1571,
    "h": 284.9
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#31177D
secondary
#94B23E
accent
#EC3CBF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #31177D

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

Preview Lab → · Contrast checker → · Palette generator →

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