#31175C#31175C

#31175C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.116 H 295.3°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#31175C
RGBrgb(49, 23, 92)
HSLhsl(263, 60%, 23%)
HSVhsv(263, 75%, 36%)
CMYKcmyk(46.7%, 75%, 0%, 63.9%)
CIE-LABlab(15.69, 29.83, -36.59)
CIE-LCHlch(15.69, 47.21, 309.19°)
OKLaboklab(28.63% 0.0496 -0.1047)
OKLCHoklch(28.63% 0.116 295.3)
XYZxyz(3.5043, 2.0384, 10.3320)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31175C #425C17
analogous
#171F5C #31175C #54175C
triadic
#31175C #5C3117 #175C31
tetradic
#31175C #5C171F #425C17 #175C54
square
#31175C #5C171F #425C17 #175C54
split-complementary
#31175C #5C5417 #1F5C17
monochromatic
#0D0618 #170B2B #31175C #4B238D #652FBE

Accessibility & contrast

On white

14.92
#31175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#31175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31175C
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31175C#FFFFFF#000000##FFFFFF
##31175C1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00265B
Tritanopia (blue-blind)
#252837
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #31175c;
/* rgb */ color: rgb(49, 23, 92);
/* oklch */ color: oklch(28.6% 0.116 295.3);
Tailwind
colors: {
  custom: {
    50: '#6e568b',
    500: '#31175c',
    950: '#000000',
  },
}
SCSS
$custom: #31175c;
$custom-light: #6e568b;
$custom-dark: #000000;
JSON
{
  "hex": "#31175c",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 262.609,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28634,
    "c": 0.11581,
    "h": 295.3
  },
  "luminance": 0.02038
}

Semantic roles & 50–950 ramp

primary
#31175C
secondary
#72933C
accent
#E345A7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #31175C

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

Preview Lab → · Contrast checker → · Palette generator →

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