#31104D#31104D

#31104D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.107 H 304.7°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#31104D
RGBrgb(49, 16, 77)
HSLhsl(272, 66%, 18%)
HSVhsv(272, 79%, 30%)
CMYKcmyk(36.4%, 79.2%, 0%, 69.8%)
CIE-LABlab(12.98, 29.34, -30.81)
CIE-LCHlch(12.98, 42.55, 313.60°)
OKLaboklab(26.29% 0.0607 -0.0876)
OKLCHoklch(26.29% 0.107 304.7)
XYZxyz(2.7912, 1.5594, 7.1737)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31104D #2C4D10
analogous
#12104D #31104D #4D104A
triadic
#31104D #4D3110 #104D31
tetradic
#31104D #4D1210 #2C4D10 #104A4D
square
#31104D #4D1210 #2C4D10 #104A4D
split-complementary
#31104D #4A4D10 #104D12
monochromatic
#100519 #11051A #31104D #511B80 #7125B2

Accessibility & contrast

On white

16.01
#31104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#31104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31104D
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31104D#FFFFFF#000000##FFFFFF
##31104D1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#00224C
Tritanopia (blue-blind)
#2C1F2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #31104d;
/* rgb */ color: rgb(49, 16, 77);
/* oklch */ color: oklch(26.3% 0.107 304.7);
Tailwind
colors: {
  custom: {
    50: '#6c517f',
    500: '#31104d',
    950: '#000000',
  },
}
SCSS
$custom: #31104d;
$custom-light: #6c517f;
$custom-dark: #000000;
JSON
{
  "hex": "#31104d",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 272.459,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26291,
    "c": 0.10659,
    "h": 304.7
  },
  "luminance": 0.01559
}

Semantic roles & 50–950 ramp

primary
#31104D
secondary
#598732
accent
#E93F8D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31104D

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

Preview Lab → · Contrast checker → · Palette generator →

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