#311048#311048

#311048 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.101 H 307.8°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#311048
RGBrgb(49, 16, 72)
HSLhsl(275, 64%, 17%)
HSVhsv(275, 78%, 28%)
CMYKcmyk(31.9%, 77.8%, 0%, 71.8%)
CIE-LABlab(12.55, 27.99, -28.04)
CIE-LCHlch(12.55, 39.62, 314.95°)
OKLaboklab(25.85% 0.0616 -0.0795)
OKLCHoklch(25.85% 0.101 307.8)
XYZxyz(2.6214, 1.4915, 6.2794)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311048 #274810
analogous
#151048 #311048 #481043
triadic
#311048 #483110 #104831
tetradic
#311048 #481510 #274810 #104348
square
#311048 #481510 #274810 #104348
split-complementary
#311048 #434810 #104815
monochromatic
#110619 #110619 #311048 #531B7A #7526AC

Accessibility & contrast

On white

16.18
#311048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#311048 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311048
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311048#FFFFFF#000000##FFFFFF
##3110481.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#032147
Tritanopia (blue-blind)
#2D1D2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #311048;
/* rgb */ color: rgb(49, 16, 72);
/* oklch */ color: oklch(25.9% 0.101 307.8);
Tailwind
colors: {
  custom: {
    50: '#6c517b',
    500: '#311048',
    950: '#000000',
  },
}
SCSS
$custom: #311048;
$custom-light: #6c517b;
$custom-dark: #000000;
JSON
{
  "hex": "#311048",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 72
  },
  "hsl": {
    "h": 275.357,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25853,
    "c": 0.10055,
    "h": 307.8
  },
  "luminance": 0.01491
}

Semantic roles & 50–950 ramp

primary
#311048
secondary
#538232
accent
#E74185
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #311048

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

Preview Lab → · Contrast checker → · Palette generator →

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