#31124A#31124A

#31124A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.100 H 306.0°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#31124A
RGBrgb(49, 18, 74)
HSLhsl(273, 61%, 18%)
HSVhsv(273, 76%, 29%)
CMYKcmyk(33.8%, 75.7%, 0%, 71%)
CIE-LABlab(13.11, 27.45, -28.53)
CIE-LCHlch(13.11, 39.59, 313.89°)
OKLaboklab(26.3% 0.0588 -0.0809)
OKLCHoklch(26.3% 0.1 306)
XYZxyz(2.7187, 1.5800, 6.6390)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31124A #2B4A12
analogous
#15124A #31124A #4A1247
triadic
#31124A #4A3112 #124A31
tetradic
#31124A #4A1512 #2B4A12 #12474A
square
#31124A #4A1512 #2B4A12 #12474A
split-complementary
#31124A #474A12 #124A15
monochromatic
#100619 #100619 #31124A #521E7B #722AAC

Accessibility & contrast

On white

15.96
#31124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#31124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31124A
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31124A#FFFFFF#000000##FFFFFF
##31124A1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#032249
Tritanopia (blue-blind)
#2D1E2C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #31124a;
/* rgb */ color: rgb(49, 18, 74);
/* oklch */ color: oklch(26.3% 0.100 306.0);
Tailwind
colors: {
  custom: {
    50: '#6c527d',
    500: '#31124a',
    950: '#000000',
  },
}
SCSS
$custom: #31124a;
$custom-light: #6c527d;
$custom-dark: #000000;
JSON
{
  "hex": "#31124a",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 273.214,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26301,
    "c": 0.10003,
    "h": 306
  },
  "luminance": 0.0158
}

Semantic roles & 50–950 ramp

primary
#31124A
secondary
#588335
accent
#E4448B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #31124A

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

Preview Lab → · Contrast checker → · Palette generator →

#31124A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva