#311548#311548

#311548 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.093 H 306.3°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#311548
RGBrgb(49, 21, 72)
HSLhsl(273, 55%, 18%)
HSVhsv(273, 71%, 28%)
CMYKcmyk(31.9%, 70.8%, 0%, 71.8%)
CIE-LABlab(13.57, 25.16, -26.39)
CIE-LCHlch(13.57, 36.47, 313.63°)
OKLaboklab(26.59% 0.055 -0.0747)
OKLCHoklch(26.59% 0.093 306.3)
XYZxyz(2.7042, 1.6572, 6.3070)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311548 #2C4815
analogous
#171548 #311548 #481545
triadic
#311548 #483115 #154831
tetradic
#311548 #481715 #2C4815 #154548
square
#311548 #481715 #2C4815 #154548
split-complementary
#311548 #454815 #154817
monochromatic
#100718 #110719 #311548 #512377 #7131A7

Accessibility & contrast

On white

15.77
#311548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#311548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311548
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311548#FFFFFF#000000##FFFFFF
##3115481.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224A
Deuteranopia (green-blind)
#0A2347
Tritanopia (blue-blind)
#2D202C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311548;
/* rgb */ color: rgb(49, 21, 72);
/* oklch */ color: oklch(26.6% 0.093 306.3);
Tailwind
colors: {
  custom: {
    50: '#6b547b',
    500: '#311548',
    950: '#000000',
  },
}
SCSS
$custom: #311548;
$custom-light: #6b547b;
$custom-dark: #000000;
JSON
{
  "hex": "#311548",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 272.941,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26586,
    "c": 0.09272,
    "h": 306.3
  },
  "luminance": 0.01657
}

Semantic roles & 50–950 ramp

primary
#311548
secondary
#598039
accent
#DE4A8D
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #311548

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

Preview Lab → · Contrast checker → · Palette generator →

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