#31115F#31115F

#31115F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.127 H 295.6°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#31115F
RGBrgb(49, 17, 95)
HSLhsl(265, 70%, 22%)
HSVhsv(265, 82%, 37%)
CMYKcmyk(48.4%, 82.1%, 0%, 62.7%)
CIE-LABlab(14.84, 33.90, -39.97)
CIE-LCHlch(14.84, 52.41, 310.30°)
OKLaboklab(28.13% 0.0549 -0.1145)
OKLCHoklch(28.13% 0.127 295.6)
XYZxyz(3.5321, 1.8800, 11.0010)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31115F #3F5F11
analogous
#11185F #31115F #58115F
triadic
#31115F #5F3111 #115F31
tetradic
#31115F #5F1118 #3F5F11 #115F58
square
#31115F #5F1118 #3F5F11 #115F58
split-complementary
#31115F #5F5811 #185F11
monochromatic
#0D051A #16082B #31115F #4C1A93 #6724C7

Accessibility & contrast

On white

15.26
#31115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#31115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31115F
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31115F#FFFFFF#000000##FFFFFF
##31115F1.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#242637
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #31115f;
/* rgb */ color: rgb(49, 17, 95);
/* oklch */ color: oklch(28.1% 0.127 295.6);
Tailwind
colors: {
  custom: {
    50: '#6f538d',
    500: '#31115f',
    950: '#000000',
  },
}
SCSS
$custom: #31115f;
$custom-light: #6f538d;
$custom-dark: #000000;
JSON
{
  "hex": "#31115f",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 264.615,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28127,
    "c": 0.12702,
    "h": 295.6
  },
  "luminance": 0.0188
}

Semantic roles & 50–950 ramp

primary
#31115F
secondary
#6F9834
accent
#EC3BA4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31115F

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

Preview Lab → · Contrast checker → · Palette generator →

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