#31114B#31114B

#31114B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.103 H 305.6°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#31114B
RGBrgb(49, 17, 75)
HSLhsl(273, 63%, 18%)
HSVhsv(273, 77%, 29%)
CMYKcmyk(34.7%, 77.3%, 0%, 70.6%)
CIE-LABlab(13.00, 28.27, -29.40)
CIE-LCHlch(13.00, 40.79, 313.87°)
OKLaboklab(26.25% 0.0599 -0.0835)
OKLCHoklch(26.25% 0.103 305.6)
XYZxyz(2.7368, 1.5619, 6.8125)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31114B #2B4B11
analogous
#14114B #31114B #4B1148
triadic
#31114B #4B3111 #114B31
tetradic
#31114B #4B1411 #2B4B11 #11484B
square
#31114B #4B1411 #2B4B11 #11484B
split-complementary
#31114B #484B11 #114B14
monochromatic
#100619 #100619 #31114B #521C7D #7228AF

Accessibility & contrast

On white

16.00
#31114B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#31114B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31114B
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31114B#FFFFFF#000000##FFFFFF
##31114B1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#00224A
Tritanopia (blue-blind)
#2C1E2C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #31114b;
/* rgb */ color: rgb(49, 17, 75);
/* oklch */ color: oklch(26.2% 0.103 305.6);
Tailwind
colors: {
  custom: {
    50: '#6c527e',
    500: '#31114b',
    950: '#000000',
  },
}
SCSS
$custom: #31114b;
$custom-light: #6c527e;
$custom-dark: #000000;
JSON
{
  "hex": "#31114b",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 75
  },
  "hsl": {
    "h": 273.103,
    "s": 63.043,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26248,
    "c": 0.10274,
    "h": 305.6
  },
  "luminance": 0.01562
}

Semantic roles & 50–950 ramp

primary
#31114B
secondary
#588433
accent
#E6428B
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31114B

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

Preview Lab → · Contrast checker → · Palette generator →

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