#31134F#31134F

#31134F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.105 H 302.8°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#31134F
RGBrgb(49, 19, 79)
HSLhsl(270, 61%, 19%)
HSVhsv(270, 76%, 31%)
CMYKcmyk(38%, 75.9%, 0%, 69%)
CIE-LABlab(13.73, 28.29, -30.97)
CIE-LCHlch(13.73, 41.95, 312.40°)
OKLaboklab(26.88% 0.0567 -0.0881)
OKLCHoklch(26.88% 0.105 302.8)
XYZxyz(2.9104, 1.6832, 7.5672)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31134F #314F13
analogous
#13134F #31134F #4F134F
triadic
#31134F #4F3113 #134F31
tetradic
#31134F #4F1313 #314F13 #134F4F
square
#31134F #4F1313 #314F13 #134F4F
split-complementary
#31134F #4F4F13 #134F13
monochromatic
#0F0619 #12071E #31134F #501F80 #6E2BB2

Accessibility & contrast

On white

15.71
#31134F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31134F
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31134F#FFFFFF#000000##FFFFFF
##31134F1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31134f;
/* rgb */ color: rgb(49, 19, 79);
/* oklch */ color: oklch(26.9% 0.105 302.8);
Tailwind
colors: {
  custom: {
    50: '#6c5381',
    500: '#31134f',
    950: '#000000',
  },
}
SCSS
$custom: #31134f;
$custom-light: #6c5381;
$custom-dark: #000000;
JSON
{
  "hex": "#31134f",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 79
  },
  "hsl": {
    "h": 270,
    "s": 61.224,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26877,
    "c": 0.1048,
    "h": 302.8
  },
  "luminance": 0.01683
}

Semantic roles & 50–950 ramp

primary
#31134F
secondary
#5F8836
accent
#E44394
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31134F

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

Preview Lab → · Contrast checker → · Palette generator →

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