#311544#311544

#311544 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.087 H 309.1°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#311544
RGBrgb(49, 21, 68)
HSLhsl(276, 53%, 17%)
HSVhsv(276, 69%, 27%)
CMYKcmyk(27.9%, 69.1%, 0%, 73.3%)
CIE-LABlab(13.27, 24.06, -24.10)
CIE-LCHlch(13.27, 34.05, 314.96°)
OKLaboklab(26.27% 0.0551 -0.0679)
OKLCHoklch(26.27% 0.088 309.1)
XYZxyz(2.5780, 1.6067, 5.6420)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311544 #284415
analogous
#1A1544 #311544 #44153F
triadic
#311544 #443115 #154431
tetradic
#311544 #441A15 #284415 #153F44
square
#311544 #441A15 #284415 #153F44
split-complementary
#311544 #3F4415 #15441A
monochromatic
#110717 #110717 #311544 #532373 #7432A2

Accessibility & contrast

On white

15.89
#311544 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#311544 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311544
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311544#FFFFFF#000000##FFFFFF
##3115441.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022145
Deuteranopia (green-blind)
#0E2243
Tritanopia (blue-blind)
#2E1E2A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #311544;
/* rgb */ color: rgb(49, 21, 68);
/* oklch */ color: oklch(26.3% 0.087 309.1);
Tailwind
colors: {
  custom: {
    50: '#6b5478',
    500: '#311544',
    950: '#000000',
  },
}
SCSS
$custom: #311544;
$custom-light: #6b5478;
$custom-dark: #000000;
JSON
{
  "hex": "#311544",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 68
  },
  "hsl": {
    "h": 275.745,
    "s": 52.809,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26269,
    "c": 0.0875,
    "h": 309.1
  },
  "luminance": 0.01607
}

Semantic roles & 50–950 ramp

primary
#311544
secondary
#547C39
accent
#DC4C86
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #311544

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

Preview Lab → · Contrast checker → · Palette generator →

#311544 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva