#311555#311555

#311555 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.110 H 299.1°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#311555
RGBrgb(49, 21, 85)
HSLhsl(266, 60%, 21%)
HSVhsv(266, 75%, 33%)
CMYKcmyk(42.4%, 75.3%, 0%, 66.7%)
CIE-LABlab(14.65, 28.89, -33.56)
CIE-LCHlch(14.65, 44.28, 310.72°)
OKLaboklab(27.7% 0.0532 -0.0957)
OKLCHoklch(27.7% 0.11 299.1)
XYZxyz(3.1741, 1.8451, 8.7815)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311555 #395515
analogous
#151955 #311555 #511555
triadic
#311555 #553115 #155531
tetradic
#311555 #551519 #395515 #155551
square
#311555 #551519 #395515 #155551
split-complementary
#311555 #555115 #195515
monochromatic
#0E0619 #150924 #311555 #4D2186 #6A2DB7

Accessibility & contrast

On white

15.34
#311555 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#311555 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311555
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311555#FFFFFF#000000##FFFFFF
##3115551.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002557
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#292433
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311555;
/* rgb */ color: rgb(49, 21, 85);
/* oklch */ color: oklch(27.7% 0.110 299.1);
Tailwind
colors: {
  custom: {
    50: '#6d5585',
    500: '#311555',
    950: '#000000',
  },
}
SCSS
$custom: #311555;
$custom-light: #6d5585;
$custom-dark: #000000;
JSON
{
  "hex": "#311555",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 85
  },
  "hsl": {
    "h": 266.25,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27701,
    "c": 0.10956,
    "h": 299.1
  },
  "luminance": 0.01845
}

Semantic roles & 50–950 ramp

primary
#311555
secondary
#688D39
accent
#E4449E
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311555

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

Preview Lab → · Contrast checker → · Palette generator →

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