#31124D#31124D

#31124D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.104 H 304.2°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#31124D
RGBrgb(49, 18, 77)
HSLhsl(272, 62%, 19%)
HSVhsv(272, 77%, 30%)
CMYKcmyk(36.4%, 76.6%, 0%, 69.8%)
CIE-LABlab(13.36, 28.28, -30.20)
CIE-LCHlch(13.36, 41.37, 313.12°)
OKLaboklab(26.56% 0.0583 -0.0858)
OKLCHoklch(26.56% 0.104 304.2)
XYZxyz(2.8222, 1.6214, 7.1840)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31124D #2E4D12
analogous
#13124D #31124D #4D124B
triadic
#31124D #4D3112 #124D31
tetradic
#31124D #4D1312 #2E4D12 #124B4D
square
#31124D #4D1312 #2E4D12 #124B4D
split-complementary
#31124D #4B4D12 #124D13
monochromatic
#100619 #11061B #31124D #511E7F #7029B0

Accessibility & contrast

On white

15.86
#31124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31124D
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31124D#FFFFFF#000000##FFFFFF
##31124D1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#00224C
Tritanopia (blue-blind)
#2C202E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #31124d;
/* rgb */ color: rgb(49, 18, 77);
/* oklch */ color: oklch(26.6% 0.104 304.2);
Tailwind
colors: {
  custom: {
    50: '#6c537f',
    500: '#31124d',
    950: '#000000',
  },
}
SCSS
$custom: #31124d;
$custom-light: #6c537f;
$custom-dark: #000000;
JSON
{
  "hex": "#31124d",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 271.525,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26561,
    "c": 0.10375,
    "h": 304.2
  },
  "luminance": 0.01621
}

Semantic roles & 50–950 ramp

primary
#31124D
secondary
#5B8635
accent
#E54390
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31124D

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

Preview Lab → · Contrast checker → · Palette generator →

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