#31155F#31155F

#31155F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.122 H 294.7°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#31155F
RGBrgb(49, 21, 95)
HSLhsl(263, 64%, 23%)
HSVhsv(263, 78%, 37%)
CMYKcmyk(48.4%, 77.9%, 0%, 62.7%)
CIE-LABlab(15.57, 31.84, -38.79)
CIE-LCHlch(15.57, 50.18, 309.39°)
OKLaboklab(28.64% 0.051 -0.1111)
OKLCHoklch(28.64% 0.122 294.7)
XYZxyz(3.5998, 2.0154, 11.0236)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31155F #435F15
analogous
#151E5F #31155F #56155F
triadic
#31155F #5F3115 #155F31
tetradic
#31155F #5F151E #435F15 #155F56
square
#31155F #5F151E #435F15 #155F56
split-complementary
#31155F #5F5615 #1E5F15
monochromatic
#0D0619 #170A2D #31155F #4B2091 #652BC3

Accessibility & contrast

On white

14.97
#31155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#31155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31155F
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31155F#FFFFFF#000000##FFFFFF
##31155F1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31155f;
/* rgb */ color: rgb(49, 21, 95);
/* oklch */ color: oklch(28.6% 0.122 294.7);
Tailwind
colors: {
  custom: {
    50: '#6e558d',
    500: '#31155f',
    950: '#000000',
  },
}
SCSS
$custom: #31155f;
$custom-light: #6e558d;
$custom-dark: #000000;
JSON
{
  "hex": "#31155f",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 262.703,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28635,
    "c": 0.12227,
    "h": 294.7
  },
  "luminance": 0.02016
}

Semantic roles & 50–950 ramp

primary
#31155F
secondary
#73963A
accent
#E741A8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31155F

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

Preview Lab → · Contrast checker → · Palette generator →

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