#31146F#31146F

#31146F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.143 H 289.3°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#31146F
RGBrgb(49, 20, 111)
HSLhsl(259, 69%, 26%)
HSVhsv(259, 82%, 44%)
CMYKcmyk(55.9%, 82%, 0%, 56.5%)
CIE-LABlab(16.99, 37.12, -46.98)
CIE-LCHlch(16.99, 59.87, 308.31°)
OKLaboklab(30.13% 0.0472 -0.1351)
OKLCHoklch(30.13% 0.143 289.3)
XYZxyz(4.3852, 2.3008, 15.2489)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31146F #526F14
analogous
#14246F #31146F #5E146F
triadic
#31146F #6F3114 #146F31
tetradic
#31146F #6F1424 #526F14 #146F5E
square
#31146F #6F1424 #526F14 #146F5E
split-complementary
#31146F #6F5E14 #246F14
monochromatic
#0B051A #1A0B3B #31146F #481DA3 #5F27D7

Accessibility & contrast

On white

14.38
#31146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#31146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31146F
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31146F#FFFFFF#000000##FFFFFF
##31146F1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#192E41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #31146f;
/* rgb */ color: rgb(49, 20, 111);
/* oklch */ color: oklch(30.1% 0.143 289.3);
Tailwind
colors: {
  custom: {
    50: '#715699',
    500: '#31146f',
    950: '#000000',
  },
}
SCSS
$custom: #31146f;
$custom-light: #715699;
$custom-dark: #000000;
JSON
{
  "hex": "#31146f",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 259.121,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30125,
    "c": 0.14311,
    "h": 289.3
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#31146F
secondary
#83A639
accent
#EC3CB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #31146F

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

Preview Lab → · Contrast checker → · Palette generator →

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