#31144F#31144F

#31144F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.103 H 302.5°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#31144F
RGBrgb(49, 20, 79)
HSLhsl(269, 60%, 19%)
HSVhsv(269, 75%, 31%)
CMYKcmyk(38%, 74.7%, 0%, 69%)
CIE-LABlab(13.93, 27.72, -30.64)
CIE-LCHlch(13.93, 41.32, 312.14°)
OKLaboklab(27.02% 0.0555 -0.0872)
OKLCHoklch(27.02% 0.103 302.5)
XYZxyz(2.9277, 1.7178, 7.5729)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31144F #324F14
analogous
#14144F #31144F #4F144F
triadic
#31144F #4F3114 #144F31
tetradic
#31144F #4F1414 #324F14 #144F4F
square
#31144F #4F1414 #324F14 #144F4F
split-complementary
#31144F #4F4F14 #144F14
monochromatic
#0F0618 #13081E #31144F #4F2080 #6E2DB1

Accessibility & contrast

On white

15.63
#31144F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#31144F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31144F
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31144F#FFFFFF#000000##FFFFFF
##31144F1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#2B222F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #31144f;
/* rgb */ color: rgb(49, 20, 79);
/* oklch */ color: oklch(27.0% 0.103 302.5);
Tailwind
colors: {
  custom: {
    50: '#6c5481',
    500: '#31144f',
    950: '#000000',
  },
}
SCSS
$custom: #31144f;
$custom-light: #6c5481;
$custom-dark: #000000;
JSON
{
  "hex": "#31144f",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 79
  },
  "hsl": {
    "h": 269.492,
    "s": 59.596,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27022,
    "c": 0.10333,
    "h": 302.5
  },
  "luminance": 0.01718
}

Semantic roles & 50–950 ramp

primary
#31144F
secondary
#608738
accent
#E34595
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #31144F

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

Preview Lab → · Contrast checker → · Palette generator →

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