#31134C#31134C

#31134C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.101 H 304.5°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#31134C
RGBrgb(49, 19, 76)
HSLhsl(272, 60%, 19%)
HSVhsv(272, 75%, 30%)
CMYKcmyk(35.5%, 75%, 0%, 70.2%)
CIE-LABlab(13.47, 27.44, -29.32)
CIE-LCHlch(13.47, 40.16, 313.11°)
OKLaboklab(26.62% 0.0572 -0.0833)
OKLCHoklch(26.62% 0.101 304.5)
XYZxyz(2.8037, 1.6405, 7.0050)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31134C #2E4C13
analogous
#14134C #31134C #4C134A
triadic
#31134C #4C3113 #134C31
tetradic
#31134C #4C1413 #2E4C13 #134A4C
square
#31134C #4C1413 #2E4C13 #134A4C
split-complementary
#31134C #4A4C13 #134C14
monochromatic
#100618 #11071B #31134C #511F7D #702BAE

Accessibility & contrast

On white

15.81
#31134C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31134C
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31134C#FFFFFF#000000##FFFFFF
##31134C1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#01234B
Tritanopia (blue-blind)
#2C202D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #31134c;
/* rgb */ color: rgb(49, 19, 76);
/* oklch */ color: oklch(26.6% 0.101 304.5);
Tailwind
colors: {
  custom: {
    50: '#6c537e',
    500: '#31134c',
    950: '#000000',
  },
}
SCSS
$custom: #31134c;
$custom-light: #6c537e;
$custom-dark: #000000;
JSON
{
  "hex": "#31134c",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 76
  },
  "hsl": {
    "h": 271.579,
    "s": 60,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26616,
    "c": 0.10102,
    "h": 304.5
  },
  "luminance": 0.01641
}

Semantic roles & 50–950 ramp

primary
#31134C
secondary
#5B8536
accent
#E34590
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31134C

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

Preview Lab → · Contrast checker → · Palette generator →

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