#31114D#31114D

#31114D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.105 H 304.4°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#31114D
RGBrgb(49, 17, 77)
HSLhsl(272, 64%, 18%)
HSVhsv(272, 78%, 30%)
CMYKcmyk(36.4%, 77.9%, 0%, 69.8%)
CIE-LABlab(13.17, 28.82, -30.51)
CIE-LCHlch(13.17, 41.97, 313.37°)
OKLaboklab(26.42% 0.0595 -0.0867)
OKLCHoklch(26.42% 0.105 304.4)
XYZxyz(2.8063, 1.5897, 7.1787)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31114D #2D4D11
analogous
#13114D #31114D #4D114B
triadic
#31114D #4D3111 #114D31
tetradic
#31114D #4D1311 #2D4D11 #114B4D
square
#31114D #4D1311 #2D4D11 #114B4D
split-complementary
#31114D #4B4D11 #114D13
monochromatic
#100619 #11061B #31114D #511C7F #7127B1

Accessibility & contrast

On white

15.93
#31114D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#31114D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31114D
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31114D#FFFFFF#000000##FFFFFF
##31114D1.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31114d;
/* rgb */ color: rgb(49, 17, 77);
/* oklch */ color: oklch(26.4% 0.105 304.4);
Tailwind
colors: {
  custom: {
    50: '#6c527f',
    500: '#31114d',
    950: '#000000',
  },
}
SCSS
$custom: #31114d;
$custom-light: #6c527f;
$custom-dark: #000000;
JSON
{
  "hex": "#31114d",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 77
  },
  "hsl": {
    "h": 272,
    "s": 63.83,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26423,
    "c": 0.10519,
    "h": 304.4
  },
  "luminance": 0.0159
}

Semantic roles & 50–950 ramp

primary
#31114D
secondary
#5A8633
accent
#E7418E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31114D

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

Preview Lab → · Contrast checker → · Palette generator →

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