#31104F#31104F

#31104F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.109 H 303.6°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#31104F
RGBrgb(49, 16, 79)
HSLhsl(271, 66%, 19%)
HSVhsv(271, 80%, 31%)
CMYKcmyk(38%, 79.7%, 0%, 69%)
CIE-LABlab(13.16, 29.89, -31.90)
CIE-LCHlch(13.16, 43.72, 313.14°)
OKLaboklab(26.47% 0.0602 -0.0908)
OKLCHoklch(26.47% 0.109 303.6)
XYZxyz(2.8629, 1.5881, 7.5513)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31104F #2E4F10
analogous
#11104F #31104F #4F104D
triadic
#31104F #4F3110 #104F31
tetradic
#31104F #4F1110 #2E4F10 #104D4F
square
#31104F #4F1110 #2E4F10 #104D4F
split-complementary
#31104F #4D4F10 #104F11
monochromatic
#100519 #11061C #31104F #511A82 #7025B5

Accessibility & contrast

On white

15.94
#31104F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#31104F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31104F
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31104F#FFFFFF#000000##FFFFFF
##31104F1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#2B1F2E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #31104f;
/* rgb */ color: rgb(49, 16, 79);
/* oklch */ color: oklch(26.5% 0.109 303.6);
Tailwind
colors: {
  custom: {
    50: '#6d5281',
    500: '#31104f',
    950: '#000000',
  },
}
SCSS
$custom: #31104f;
$custom-light: #6d5281;
$custom-dark: #000000;
JSON
{
  "hex": "#31104f",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 79
  },
  "hsl": {
    "h": 271.429,
    "s": 66.316,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26471,
    "c": 0.109,
    "h": 303.6
  },
  "luminance": 0.01588
}

Semantic roles & 50–950 ramp

primary
#31104F
secondary
#5B8932
accent
#E93F90
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31104F

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

Preview Lab → · Contrast checker → · Palette generator →

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