#31165C#31165C

#31165C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.117 H 295.6°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#31165C
RGBrgb(49, 22, 92)
HSLhsl(263, 61%, 22%)
HSVhsv(263, 76%, 36%)
CMYKcmyk(46.7%, 76.1%, 0%, 63.9%)
CIE-LABlab(15.48, 30.40, -36.92)
CIE-LCHlch(15.48, 47.82, 309.47°)
OKLaboklab(28.49% 0.0507 -0.1056)
OKLCHoklch(28.49% 0.117 295.6)
XYZxyz(3.4848, 1.9994, 10.3255)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31165C #415C16
analogous
#161E5C #31165C #54165C
triadic
#31165C #5C3116 #165C31
tetradic
#31165C #5C161E #415C16 #165C54
square
#31165C #5C161E #415C16 #165C54
split-complementary
#31165C #5C5416 #1E5C16
monochromatic
#0D0619 #170A2B #31165C #4B228D #662EBF

Accessibility & contrast

On white

15.00
#31165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#31165C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31165C
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31165C#FFFFFF#000000##FFFFFF
##31165C1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31165c;
/* rgb */ color: rgb(49, 22, 92);
/* oklch */ color: oklch(28.5% 0.117 295.6);
Tailwind
colors: {
  custom: {
    50: '#6e568b',
    500: '#31165c',
    950: '#000000',
  },
}
SCSS
$custom: #31165c;
$custom-light: #6e568b;
$custom-dark: #000000;
JSON
{
  "hex": "#31165c",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 263.143,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28489,
    "c": 0.11716,
    "h": 295.6
  },
  "luminance": 0.01999
}

Semantic roles & 50–950 ramp

primary
#31165C
secondary
#71933B
accent
#E543A6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #31165C

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

Preview Lab → · Contrast checker → · Palette generator →

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