#31137C#31137C

#31137C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.159 H 285.8°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#31137C
RGBrgb(49, 19, 124)
HSLhsl(257, 73%, 28%)
HSVhsv(257, 85%, 49%)
CMYKcmyk(60.5%, 84.7%, 0%, 51.4%)
CIE-LABlab(18.25, 41.41, -53.28)
CIE-LCHlch(18.25, 67.48, 307.86°)
OKLaboklab(31.42% 0.0433 -0.1535)
OKLCHoklch(31.42% 0.159 285.8)
XYZxyz(5.1365, 2.5736, 19.2910)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31137C #5E7C13
analogous
#13297C #31137C #65137C
triadic
#31137C #7C3113 #137C31
tetradic
#31137C #7C1329 #5E7C13 #137C65
square
#31137C #7C1329 #5E7C13 #137C65
split-complementary
#31137C #7C6513 #297C13
monochromatic
#0A041B #1C0B47 #31137C #461BB1 #5E2BDF

Accessibility & contrast

On white

13.86
#31137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#31137C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31137C
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31137C#FFFFFF#000000##FFFFFF
##31137C1.0013.861.5113.86
#FFFFFF13.861.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#073349
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #31137c;
/* rgb */ color: rgb(49, 19, 124);
/* oklch */ color: oklch(31.4% 0.159 285.8);
Tailwind
colors: {
  custom: {
    50: '#7456a3',
    500: '#31137c',
    950: '#000000',
  },
}
SCSS
$custom: #31137c;
$custom-light: #7456a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31137c",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 257.143,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31418,
    "c": 0.15949,
    "h": 285.8
  },
  "luminance": 0.02574
}

Semantic roles & 50–950 ramp

primary
#31137C
secondary
#8FB239
accent
#F038BB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #31137C

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

Preview Lab → · Contrast checker → · Palette generator →

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