#31134D#31134D

#31134D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.102 H 303.9°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#31134D
RGBrgb(49, 19, 77)
HSLhsl(271, 60%, 19%)
HSVhsv(271, 75%, 30%)
CMYKcmyk(36.4%, 75.3%, 0%, 69.8%)
CIE-LABlab(13.56, 27.72, -29.87)
CIE-LCHlch(13.56, 40.76, 312.86°)
OKLaboklab(26.7% 0.057 -0.0849)
OKLCHoklch(26.7% 0.102 303.9)
XYZxyz(2.8387, 1.6545, 7.1895)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31134D #2F4D13
analogous
#14134D #31134D #4D134C
triadic
#31134D #4D3113 #134D31
tetradic
#31134D #4D1413 #2F4D13 #134C4D
square
#31134D #4D1413 #2F4D13 #134C4D
split-complementary
#31134D #4C4D13 #134D14
monochromatic
#100619 #12071C #31134D #501F7E #6F2BAF

Accessibility & contrast

On white

15.78
#31134D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#31134D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31134D
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31134D#FFFFFF#000000##FFFFFF
##31134D1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#00234C
Tritanopia (blue-blind)
#2C202E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #31134d;
/* rgb */ color: rgb(49, 19, 77);
/* oklch */ color: oklch(26.7% 0.102 303.9);
Tailwind
colors: {
  custom: {
    50: '#6c537f',
    500: '#31134d',
    950: '#000000',
  },
}
SCSS
$custom: #31134d;
$custom-light: #6c537f;
$custom-dark: #000000;
JSON
{
  "hex": "#31134d",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 77
  },
  "hsl": {
    "h": 271.034,
    "s": 60.417,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26703,
    "c": 0.10228,
    "h": 303.9
  },
  "luminance": 0.01655
}

Semantic roles & 50–950 ramp

primary
#31134D
secondary
#5D8636
accent
#E44491
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31134D

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

Preview Lab → · Contrast checker → · Palette generator →

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