#31146C#31146C

#31146C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.139 H 290.2°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#31146C
RGBrgb(49, 20, 108)
HSLhsl(260, 69%, 25%)
HSVhsv(260, 81%, 42%)
CMYKcmyk(54.6%, 81.5%, 0%, 57.6%)
CIE-LABlab(16.68, 36.23, -45.54)
CIE-LCHlch(16.68, 58.19, 308.51°)
OKLaboklab(29.81% 0.0482 -0.1309)
OKLCHoklch(29.81% 0.139 290.2)
XYZxyz(4.2228, 2.2358, 14.3935)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31146C #4F6C14
analogous
#14236C #31146C #5D146C
triadic
#31146C #6C3114 #146C31
tetradic
#31146C #6C1423 #4F6C14 #146C5D
square
#31146C #6C1423 #4F6C14 #146C5D
split-complementary
#31146C #6C5D14 #236C14
monochromatic
#0C051A #1A0A38 #31146C #481EA0 #6027D3

Accessibility & contrast

On white

14.51
#31146C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#31146C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31146C
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31146C#FFFFFF#000000##FFFFFF
##31146C1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#1B2D40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #31146c;
/* rgb */ color: rgb(49, 20, 108);
/* oklch */ color: oklch(29.8% 0.139 290.2);
Tailwind
colors: {
  custom: {
    50: '#715597',
    500: '#31146c',
    950: '#000000',
  },
}
SCSS
$custom: #31146c;
$custom-light: #715597;
$custom-dark: #000000;
JSON
{
  "hex": "#31146c",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 108
  },
  "hsl": {
    "h": 259.773,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29811,
    "c": 0.13948,
    "h": 290.2
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#31146C
secondary
#80A339
accent
#EC3CB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #31146C

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

Preview Lab → · Contrast checker → · Palette generator →

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