#31144B#31144B

#31144B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.098 H 304.8°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#31144B
RGBrgb(49, 20, 75)
HSLhsl(272, 58%, 19%)
HSVhsv(272, 73%, 29%)
CMYKcmyk(34.7%, 73.3%, 0%, 70.6%)
CIE-LABlab(13.60, 26.59, -28.43)
CIE-LCHlch(13.60, 38.93, 313.09°)
OKLaboklab(26.68% 0.056 -0.0807)
OKLCHoklch(26.68% 0.098 304.8)
XYZxyz(2.7865, 1.6613, 6.8291)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31144B #2E4B14
analogous
#15144B #31144B #4B1449
triadic
#31144B #4B3114 #144B31
tetradic
#31144B #4B1514 #2E4B14 #14494B
square
#31144B #4B1514 #2E4B14 #14494B
split-complementary
#31144B #494B14 #144B15
monochromatic
#100618 #11071B #31144B #51217B #702EAC

Accessibility & contrast

On white

15.76
#31144B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#31144B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31144B
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31144B#FFFFFF#000000##FFFFFF
##31144B1.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#04234A
Tritanopia (blue-blind)
#2C202D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #31144b;
/* rgb */ color: rgb(49, 20, 75);
/* oklch */ color: oklch(26.7% 0.098 304.8);
Tailwind
colors: {
  custom: {
    50: '#6c547e',
    500: '#31144b',
    950: '#000000',
  },
}
SCSS
$custom: #31144b;
$custom-light: #6c547e;
$custom-dark: #000000;
JSON
{
  "hex": "#31144b",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 75
  },
  "hsl": {
    "h": 271.636,
    "s": 57.895,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26679,
    "c": 0.09821,
    "h": 304.8
  },
  "luminance": 0.01661
}

Semantic roles & 50–950 ramp

primary
#31144B
secondary
#5B8338
accent
#E14790
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #31144B

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

Preview Lab → · Contrast checker → · Palette generator →

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