#31165B#31165B

#31165B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.116 H 296.1°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#31165B
RGBrgb(49, 22, 91)
HSLhsl(263, 61%, 22%)
HSVhsv(263, 76%, 36%)
CMYKcmyk(46.2%, 75.8%, 0%, 64.3%)
CIE-LABlab(15.39, 30.10, -36.40)
CIE-LCHlch(15.39, 47.23, 309.59°)
OKLaboklab(28.4% 0.0509 -0.1041)
OKLCHoklch(28.4% 0.116 296.1)
XYZxyz(3.4414, 1.9820, 10.0968)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31165B #405B16
analogous
#161E5B #31165B #54165B
triadic
#31165B #5B3116 #165B31
tetradic
#31165B #5B161E #405B16 #165B54
square
#31165B #5B161E #405B16 #165B54
split-complementary
#31165B #5B5416 #1E5B16
monochromatic
#0D0619 #160A2A #31165B #4C228C #662EBE

Accessibility & contrast

On white

15.04
#31165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31165B
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31165B#FFFFFF#000000##FFFFFF
##31165B1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#262736
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #31165b;
/* rgb */ color: rgb(49, 22, 91);
/* oklch */ color: oklch(28.4% 0.116 296.1);
Tailwind
colors: {
  custom: {
    50: '#6e568a',
    500: '#31165b',
    950: '#000000',
  },
}
SCSS
$custom: #31165b;
$custom-light: #6e568a;
$custom-dark: #000000;
JSON
{
  "hex": "#31165b",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 263.478,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28396,
    "c": 0.11588,
    "h": 296.1
  },
  "luminance": 0.01982
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31165B

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

Preview Lab → · Contrast checker → · Palette generator →

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