#31165F#31165F

#31165F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.121 H 294.4°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#31165F
RGBrgb(49, 22, 95)
HSLhsl(262, 62%, 23%)
HSVhsv(262, 77%, 37%)
CMYKcmyk(48.4%, 76.8%, 0%, 62.7%)
CIE-LABlab(15.76, 31.30, -38.47)
CIE-LCHlch(15.76, 49.59, 309.13°)
OKLaboklab(28.77% 0.05 -0.1102)
OKLCHoklch(28.77% 0.121 294.4)
XYZxyz(3.6185, 2.0529, 11.0299)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31165F #445F16
analogous
#161F5F #31165F #55165F
triadic
#31165F #5F3116 #165F31
tetradic
#31165F #5F161F #445F16 #165F55
square
#31165F #5F161F #445F16 #165F55
split-complementary
#31165F #5F5516 #1F5F16
monochromatic
#0D0619 #170A2D #31165F #4B2291 #642DC2

Accessibility & contrast

On white

14.89
#31165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#31165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31165F
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31165F#FFFFFF#000000##FFFFFF
##31165F1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#242939
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #31165f;
/* rgb */ color: rgb(49, 22, 95);
/* oklch */ color: oklch(28.8% 0.121 294.4);
Tailwind
colors: {
  custom: {
    50: '#6e568d',
    500: '#31165f',
    950: '#000000',
  },
}
SCSS
$custom: #31165f;
$custom-light: #6e568d;
$custom-dark: #000000;
JSON
{
  "hex": "#31165f",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 262.192,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28773,
    "c": 0.121,
    "h": 294.4
  },
  "luminance": 0.02053
}

Semantic roles & 50–950 ramp

primary
#31165F
secondary
#74963B
accent
#E542A9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31165F

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

Preview Lab → · Contrast checker → · Palette generator →

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