#311871#311871

#311871 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.141 H 287.9°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#311871
RGBrgb(49, 24, 113)
HSLhsl(257, 65%, 27%)
HSVhsv(257, 79%, 44%)
CMYKcmyk(56.6%, 78.8%, 0%, 55.7%)
CIE-LABlab(17.91, 35.69, -46.77)
CIE-LCHlch(17.91, 58.83, 307.35°)
OKLaboklab(30.83% 0.0434 -0.1345)
OKLCHoklch(30.83% 0.141 287.9)
XYZxyz(4.5730, 2.4983, 15.8608)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311871 #587118
analogous
#182C71 #311871 #5E1871
triadic
#311871 #713118 #187131
tetradic
#311871 #71182C #587118 #18715E
square
#311871 #71182C #587118 #18715E
split-complementary
#311871 #715E18 #2C7118
monochromatic
#0B0519 #1B0D3F #311871 #4723A3 #5E30D3

Accessibility & contrast

On white

14.00
#311871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#311871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311871
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311871#FFFFFF#000000##FFFFFF
##3118711.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#173143
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311871;
/* rgb */ color: rgb(49, 24, 113);
/* oklch */ color: oklch(30.8% 0.141 287.9);
Tailwind
colors: {
  custom: {
    50: '#71589b',
    500: '#311871',
    950: '#000000',
  },
}
SCSS
$custom: #311871;
$custom-light: #71589b;
$custom-dark: #000000;
JSON
{
  "hex": "#311871",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 256.854,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30829,
    "c": 0.14134,
    "h": 287.9
  },
  "luminance": 0.02498
}

Semantic roles & 50–950 ramp

primary
#311871
secondary
#89A63E
accent
#E840B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311871

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

Preview Lab → · Contrast checker → · Palette generator →

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