#311471#311471

#311471 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.146 H 288.6°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#311471
RGBrgb(49, 20, 113)
HSLhsl(259, 70%, 26%)
HSVhsv(259, 82%, 44%)
CMYKcmyk(56.6%, 82.3%, 0%, 55.7%)
CIE-LABlab(17.20, 37.71, -47.93)
CIE-LCHlch(17.20, 60.99, 308.20°)
OKLaboklab(30.34% 0.0465 -0.1379)
OKLCHoklch(30.34% 0.146 288.6)
XYZxyz(4.4965, 2.3453, 15.8353)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311471 #547114
analogous
#142571 #311471 #5F1471
triadic
#311471 #713114 #147131
tetradic
#311471 #711425 #547114 #14715F
square
#311471 #711425 #547114 #14715F
split-complementary
#311471 #715F14 #257114
monochromatic
#0B051A #1A0B3D #311471 #481DA5 #5E27D9

Accessibility & contrast

On white

14.29
#311471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#311471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311471
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311471#FFFFFF#000000##FFFFFF
##3114711.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#172F42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311471;
/* rgb */ color: rgb(49, 20, 113);
/* oklch */ color: oklch(30.3% 0.146 288.6);
Tailwind
colors: {
  custom: {
    50: '#72569b',
    500: '#311471',
    950: '#000000',
  },
}
SCSS
$custom: #311471;
$custom-light: #72569b;
$custom-dark: #000000;
JSON
{
  "hex": "#311471",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 258.71,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30336,
    "c": 0.14552,
    "h": 288.6
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#311471
secondary
#85A739
accent
#ED3BB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311471

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

Preview Lab → · Contrast checker → · Palette generator →

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