#31165A#31165A

#31165A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.115 H 296.5°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#31165A
RGBrgb(49, 22, 90)
HSLhsl(264, 61%, 22%)
HSVhsv(264, 76%, 35%)
CMYKcmyk(45.6%, 75.6%, 0%, 64.7%)
CIE-LABlab(15.30, 29.80, -35.88)
CIE-LCHlch(15.30, 46.64, 309.71°)
OKLaboklab(28.3% 0.0511 -0.1026)
OKLCHoklch(28.3% 0.115 296.5)
XYZxyz(3.3985, 1.9649, 9.8711)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31165A #3F5A16
analogous
#161D5A #31165A #53165A
triadic
#31165A #5A3116 #165A31
tetradic
#31165A #5A161D #3F5A16 #165A53
square
#31165A #5A161D #3F5A16 #165A53
split-complementary
#31165A #5A5316 #1D5A16
monochromatic
#0D0619 #160A29 #31165A #4C228B #672EBC

Accessibility & contrast

On white

15.08
#31165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#31165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31165A
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31165A#FFFFFF#000000##FFFFFF
##31165A1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#262736
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #31165a;
/* rgb */ color: rgb(49, 22, 90);
/* oklch */ color: oklch(28.3% 0.115 296.5);
Tailwind
colors: {
  custom: {
    50: '#6e5689',
    500: '#31165a',
    950: '#000000',
  },
}
SCSS
$custom: #31165a;
$custom-light: #6e5689;
$custom-dark: #000000;
JSON
{
  "hex": "#31165a",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 263.824,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28303,
    "c": 0.11459,
    "h": 296.5
  },
  "luminance": 0.01965
}

Semantic roles & 50–950 ramp

primary
#31165A
secondary
#6F913B
accent
#E444A4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #31165A

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

Preview Lab → · Contrast checker → · Palette generator →

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