#31146D#31146D

#31146D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.141 H 289.9°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#31146D
RGBrgb(49, 20, 109)
HSLhsl(260, 69%, 25%)
HSVhsv(260, 82%, 43%)
CMYKcmyk(55%, 81.7%, 0%, 57.3%)
CIE-LABlab(16.78, 36.53, -46.02)
CIE-LCHlch(16.78, 58.76, 308.44°)
OKLaboklab(29.92% 0.0479 -0.1323)
OKLCHoklch(29.92% 0.141 289.9)
XYZxyz(4.2763, 2.2572, 14.6754)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31146D #506D14
analogous
#14236D #31146D #5E146D
triadic
#31146D #6D3114 #146D31
tetradic
#31146D #6D1423 #506D14 #146D5E
square
#31146D #6D1423 #506D14 #146D5E
split-complementary
#31146D #6D5E14 #236D14
monochromatic
#0C051A #1A0B39 #31146D #481DA1 #5F27D4

Accessibility & contrast

On white

14.47
#31146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31146D
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31146D#FFFFFF#000000##FFFFFF
##31146D1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31146d;
/* rgb */ color: rgb(49, 20, 109);
/* oklch */ color: oklch(29.9% 0.141 289.9);
Tailwind
colors: {
  custom: {
    50: '#715698',
    500: '#31146d',
    950: '#000000',
  },
}
SCSS
$custom: #31146d;
$custom-light: #715698;
$custom-dark: #000000;
JSON
{
  "hex": "#31146d",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 259.551,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29915,
    "c": 0.14069,
    "h": 289.9
  },
  "luminance": 0.02257
}

Semantic roles & 50–950 ramp

primary
#31146D
secondary
#81A439
accent
#EC3CB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #31146D

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

Preview Lab → · Contrast checker → · Palette generator →

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