#31166A#31166A

#31166A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.135 H 290.4°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#31166A
RGBrgb(49, 22, 106)
HSLhsl(259, 66%, 25%)
HSVhsv(259, 79%, 42%)
CMYKcmyk(53.8%, 79.2%, 0%, 58.4%)
CIE-LABlab(16.83, 34.61, -43.98)
CIE-LCHlch(16.83, 55.97, 308.20°)
OKLaboklab(29.86% 0.0471 -0.1263)
OKLCHoklch(29.86% 0.135 290.4)
XYZxyz(4.1543, 2.2672, 13.8516)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31166A #4F6A16
analogous
#16256A #31166A #5B166A
triadic
#31166A #6A3116 #166A31
tetradic
#31166A #6A1625 #4F6A16 #166A5B
square
#31166A #6A1625 #4F6A16 #166A5B
split-complementary
#31166A #6A5B16 #256A16
monochromatic
#0C0519 #1A0B37 #31166A #48219D #602BCF

Accessibility & contrast

On white

14.45
#31166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#31166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31166A
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31166A#FFFFFF#000000##FFFFFF
##31166A1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#1D2D3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #31166a;
/* rgb */ color: rgb(49, 22, 106);
/* oklch */ color: oklch(29.9% 0.135 290.4);
Tailwind
colors: {
  custom: {
    50: '#705695',
    500: '#31166a',
    950: '#000000',
  },
}
SCSS
$custom: #31166a;
$custom-light: #705695;
$custom-dark: #000000;
JSON
{
  "hex": "#31166a",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 259.286,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29856,
    "c": 0.13484,
    "h": 290.4
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#31166A
secondary
#80A03B
accent
#E93FB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #31166A

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

Preview Lab → · Contrast checker → · Palette generator →

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