#31146A#31146A

#31146A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.137 H 290.9°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#31146A
RGBrgb(49, 20, 106)
HSLhsl(260, 68%, 25%)
HSVhsv(260, 81%, 42%)
CMYKcmyk(53.8%, 81.1%, 0%, 58.4%)
CIE-LABlab(16.47, 35.64, -44.57)
CIE-LCHlch(16.47, 57.07, 308.65°)
OKLaboklab(29.6% 0.0488 -0.1281)
OKLCHoklch(29.6% 0.137 290.9)
XYZxyz(4.1176, 2.1937, 13.8393)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31146A #4D6A14
analogous
#14226A #31146A #5C146A
triadic
#31146A #6A3114 #146A31
tetradic
#31146A #6A1422 #4D6A14 #146A5C
square
#31146A #6A1422 #4D6A14 #146A5C
split-complementary
#31146A #6A5C14 #226A14
monochromatic
#0C051A #190A37 #31146A #491E9D #6127D1

Accessibility & contrast

On white

14.60
#31146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#31146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31146A
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31146A#FFFFFF#000000##FFFFFF
##31146A1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#1D2C3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #31146a;
/* rgb */ color: rgb(49, 20, 106);
/* oklch */ color: oklch(29.6% 0.137 290.9);
Tailwind
colors: {
  custom: {
    50: '#705595',
    500: '#31146a',
    950: '#000000',
  },
}
SCSS
$custom: #31146a;
$custom-light: #705595;
$custom-dark: #000000;
JSON
{
  "hex": "#31146a",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 260.233,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29604,
    "c": 0.13705,
    "h": 290.9
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

primary
#31146A
secondary
#7EA139
accent
#EB3DB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #31146A

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

Preview Lab → · Contrast checker → · Palette generator →

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