#311771#311771

#311771 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.142 H 288.1°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#311771
RGBrgb(49, 23, 113)
HSLhsl(257, 66%, 27%)
HSVhsv(257, 80%, 44%)
CMYKcmyk(56.6%, 79.6%, 0%, 55.7%)
CIE-LABlab(17.73, 36.21, -47.07)
CIE-LCHlch(17.73, 59.39, 307.57°)
OKLaboklab(30.7% 0.0442 -0.1354)
OKLCHoklch(30.7% 0.142 288.1)
XYZxyz(4.5528, 2.4578, 15.8541)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311771 #577117
analogous
#172A71 #311771 #5E1771
triadic
#311771 #713117 #177131
tetradic
#311771 #71172A #577117 #17715E
square
#311771 #71172A #577117 #17715E
split-complementary
#311771 #715E17 #2A7117
monochromatic
#0B0519 #1B0D3E #311771 #4721A4 #5E2ED4

Accessibility & contrast

On white

14.08
#311771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#311771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311771
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311771#FFFFFF#000000##FFFFFF
##3117711.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#173043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311771;
/* rgb */ color: rgb(49, 23, 113);
/* oklch */ color: oklch(30.7% 0.142 288.1);
Tailwind
colors: {
  custom: {
    50: '#71579b',
    500: '#311771',
    950: '#000000',
  },
}
SCSS
$custom: #311771;
$custom-light: #71579b;
$custom-dark: #000000;
JSON
{
  "hex": "#311771",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 257.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.307,
    "c": 0.14243,
    "h": 288.1
  },
  "luminance": 0.02458
}

Semantic roles & 50–950 ramp

primary
#311771
secondary
#88A73D
accent
#E93FB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311771

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

Preview Lab → · Contrast checker → · Palette generator →

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