#31155A#31155A

#31155A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.116 H 296.8°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#31155A
RGBrgb(49, 21, 90)
HSLhsl(264, 62%, 22%)
HSVhsv(264, 77%, 35%)
CMYKcmyk(45.6%, 76.7%, 0%, 64.7%)
CIE-LABlab(15.10, 30.36, -36.20)
CIE-LCHlch(15.10, 47.25, 309.98°)
OKLaboklab(28.16% 0.0522 -0.1035)
OKLCHoklch(28.16% 0.116 296.8)
XYZxyz(3.3798, 1.9274, 9.8648)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31155A #3E5A15
analogous
#151C5A #31155A #54155A
triadic
#31155A #5A3115 #155A31
tetradic
#31155A #5A151C #3E5A15 #155A54
square
#31155A #5A151C #3E5A15 #155A54
split-complementary
#31155A #5A5415 #1C5A15
monochromatic
#0E0619 #160928 #31155A #4C218C #672CBD

Accessibility & contrast

On white

15.16
#31155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#31155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31155A
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31155A#FFFFFF#000000##FFFFFF
##31155A1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#262636
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #31155a;
/* rgb */ color: rgb(49, 21, 90);
/* oklch */ color: oklch(28.2% 0.116 296.8);
Tailwind
colors: {
  custom: {
    50: '#6e5589',
    500: '#31155a',
    950: '#000000',
  },
}
SCSS
$custom: #31155a;
$custom-light: #6e5589;
$custom-dark: #000000;
JSON
{
  "hex": "#31155a",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 264.348,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.2816,
    "c": 0.11595,
    "h": 296.8
  },
  "luminance": 0.01927
}

Semantic roles & 50–950 ramp

primary
#31155A
secondary
#6E9239
accent
#E543A3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #31155A

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

Preview Lab → · Contrast checker → · Palette generator →

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