#31166D#31166D

#31166D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.139 H 289.5°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#31166D
RGBrgb(49, 22, 109)
HSLhsl(259, 66%, 26%)
HSVhsv(259, 80%, 43%)
CMYKcmyk(55%, 79.8%, 0%, 57.3%)
CIE-LABlab(17.14, 35.52, -45.44)
CIE-LCHlch(17.14, 57.68, 308.01°)
OKLaboklab(30.16% 0.0462 -0.1306)
OKLCHoklch(30.16% 0.139 289.5)
XYZxyz(4.3130, 2.3307, 14.6876)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31166D #526D16
analogous
#16266D #31166D #5C166D
triadic
#31166D #6D3116 #166D31
tetradic
#31166D #6D1626 #526D16 #166D5C
square
#31166D #6D1626 #526D16 #166D5C
split-complementary
#31166D #6D5C16 #266D16
monochromatic
#0B0519 #1A0C3A #31166D #4820A0 #5F2BD3

Accessibility & contrast

On white

14.32
#31166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#31166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31166D
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31166D#FFFFFF#000000##FFFFFF
##31166D1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#1A2E41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #31166d;
/* rgb */ color: rgb(49, 22, 109);
/* oklch */ color: oklch(30.2% 0.139 289.5);
Tailwind
colors: {
  custom: {
    50: '#715798',
    500: '#31166d',
    950: '#000000',
  },
}
SCSS
$custom: #31166d;
$custom-light: #715798;
$custom-dark: #000000;
JSON
{
  "hex": "#31166d",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 258.621,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30161,
    "c": 0.13857,
    "h": 289.5
  },
  "luminance": 0.02331
}

Semantic roles & 50–950 ramp

primary
#31166D
secondary
#83A33C
accent
#E93EB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #31166D

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

Preview Lab → · Contrast checker → · Palette generator →

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