#311557#311557

#311557 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.112 H 298.1°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#311557
RGBrgb(49, 21, 87)
HSLhsl(265, 61%, 21%)
HSVhsv(265, 76%, 34%)
CMYKcmyk(43.7%, 75.9%, 0%, 65.9%)
CIE-LABlab(14.83, 29.48, -34.63)
CIE-LCHlch(14.83, 45.47, 310.41°)
OKLaboklab(27.88% 0.0529 -0.0989)
OKLCHoklch(27.88% 0.112 298.1)
XYZxyz(3.2546, 1.8774, 9.2059)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311557 #3B5715
analogous
#151A57 #311557 #521557
triadic
#311557 #573115 #155731
tetradic
#311557 #57151A #3B5715 #155752
square
#311557 #57151A #3B5715 #155752
split-complementary
#311557 #575215 #1A5715
monochromatic
#0E0619 #150926 #311557 #4D2188 #692DBA

Accessibility & contrast

On white

15.27
#311557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#311557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311557
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311557#FFFFFF#000000##FFFFFF
##3115571.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#282534
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311557;
/* rgb */ color: rgb(49, 21, 87);
/* oklch */ color: oklch(27.9% 0.112 298.1);
Tailwind
colors: {
  custom: {
    50: '#6d5587',
    500: '#311557',
    950: '#000000',
  },
}
SCSS
$custom: #311557;
$custom-light: #6d5587;
$custom-dark: #000000;
JSON
{
  "hex": "#311557",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 265.455,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27883,
    "c": 0.11212,
    "h": 298.1
  },
  "luminance": 0.01877
}

Semantic roles & 50–950 ramp

primary
#311557
secondary
#6A8F39
accent
#E444A0
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311557

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

Preview Lab → · Contrast checker → · Palette generator →

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