#311971#311971

#311971 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.140 H 287.7°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#311971
RGBrgb(49, 25, 113)
HSLhsl(256, 64%, 27%)
HSVhsv(256, 78%, 44%)
CMYKcmyk(56.6%, 77.9%, 0%, 55.7%)
CIE-LABlab(18.10, 35.15, -46.46)
CIE-LCHlch(18.10, 58.26, 307.11°)
OKLaboklab(30.96% 0.0425 -0.1336)
OKLCHoklch(30.96% 0.14 287.7)
XYZxyz(4.5940, 2.5402, 15.8678)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311971 #597119
analogous
#192D71 #311971 #5D1971
triadic
#311971 #713119 #197131
tetradic
#311971 #71192D #597119 #19715D
square
#311971 #71192D #597119 #19715D
split-complementary
#311971 #715D19 #2D7119
monochromatic
#0B0619 #1B0E3F #311971 #4724A3 #5E33D2

Accessibility & contrast

On white

13.93
#311971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#311971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311971
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311971#FFFFFF#000000##FFFFFF
##3119711.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#173144
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311971;
/* rgb */ color: rgb(49, 25, 113);
/* oklch */ color: oklch(31.0% 0.140 287.7);
Tailwind
colors: {
  custom: {
    50: '#71599b',
    500: '#311971',
    950: '#000000',
  },
}
SCSS
$custom: #311971;
$custom-light: #71599b;
$custom-dark: #000000;
JSON
{
  "hex": "#311971",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 256.364,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30962,
    "c": 0.14023,
    "h": 287.7
  },
  "luminance": 0.0254
}

Semantic roles & 50–950 ramp

primary
#311971
secondary
#8AA640
accent
#E741BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311971

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

Preview Lab → · Contrast checker → · Palette generator →

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