#31165D#31165D

#31165D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.118 H 295.2°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#31165D
RGBrgb(49, 22, 93)
HSLhsl(263, 62%, 23%)
HSVhsv(263, 76%, 36%)
CMYKcmyk(47.3%, 76.3%, 0%, 63.5%)
CIE-LABlab(15.58, 30.70, -37.44)
CIE-LCHlch(15.58, 48.41, 309.35°)
OKLaboklab(28.58% 0.0505 -0.1071)
OKLCHoklch(28.58% 0.118 295.2)
XYZxyz(3.5288, 2.0170, 10.5572)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31165D #425D16
analogous
#161E5D #31165D #54165D
triadic
#31165D #5D3116 #165D31
tetradic
#31165D #5D161E #425D16 #165D54
square
#31165D #5D161E #425D16 #165D54
split-complementary
#31165D #5D5416 #1E5D16
monochromatic
#0D0619 #170A2C #31165D #4B228E #652DC0

Accessibility & contrast

On white

14.96
#31165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31165D
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31165D#FFFFFF#000000##FFFFFF
##31165D1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00265C
Tritanopia (blue-blind)
#252838
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #31165d;
/* rgb */ color: rgb(49, 22, 93);
/* oklch */ color: oklch(28.6% 0.118 295.2);
Tailwind
colors: {
  custom: {
    50: '#6e568c',
    500: '#31165d',
    950: '#000000',
  },
}
SCSS
$custom: #31165d;
$custom-light: #6e568c;
$custom-dark: #000000;
JSON
{
  "hex": "#31165d",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 262.817,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28583,
    "c": 0.11844,
    "h": 295.2
  },
  "luminance": 0.02017
}

Semantic roles & 50–950 ramp

primary
#31165D
secondary
#72943B
accent
#E543A7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31165D

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

Preview Lab → · Contrast checker → · Palette generator →

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