#31114F#31114F

#31114F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.108 H 303.3°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#31114F
RGBrgb(49, 17, 79)
HSLhsl(271, 65%, 19%)
HSVhsv(271, 78%, 31%)
CMYKcmyk(38%, 78.5%, 0%, 69%)
CIE-LABlab(13.34, 29.37, -31.60)
CIE-LCHlch(13.34, 43.14, 312.91°)
OKLaboklab(26.6% 0.0591 -0.09)
OKLCHoklch(26.6% 0.108 303.3)
XYZxyz(2.8780, 1.6184, 7.5564)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31114F #2F4F11
analogous
#12114F #31114F #4F114E
triadic
#31114F #4F3111 #114F31
tetradic
#31114F #4F1211 #2F4F11 #114E4F
square
#31114F #4F1211 #2F4F11 #114E4F
split-complementary
#31114F #4E4F11 #114F12
monochromatic
#100519 #12061D #31114F #501C81 #6F27B4

Accessibility & contrast

On white

15.87
#31114F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31114F
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31114F#FFFFFF#000000##FFFFFF
##31114F1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#2B202E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #31114f;
/* rgb */ color: rgb(49, 17, 79);
/* oklch */ color: oklch(26.6% 0.108 303.3);
Tailwind
colors: {
  custom: {
    50: '#6d5281',
    500: '#31114f',
    950: '#000000',
  },
}
SCSS
$custom: #31114f;
$custom-light: #6d5281;
$custom-dark: #000000;
JSON
{
  "hex": "#31114f",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 79
  },
  "hsl": {
    "h": 270.968,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26602,
    "c": 0.10764,
    "h": 303.3
  },
  "luminance": 0.01618
}

Semantic roles & 50–950 ramp

primary
#31114F
secondary
#5D8833
accent
#E84091
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31114F

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

Preview Lab → · Contrast checker → · Palette generator →

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