#311972#311972

#311972 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.141 H 287.4°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#311972
RGBrgb(49, 25, 114)
HSLhsl(256, 64%, 27%)
HSVhsv(256, 78%, 45%)
CMYKcmyk(57%, 78.1%, 0%, 55.3%)
CIE-LABlab(18.20, 35.46, -46.94)
CIE-LCHlch(18.20, 58.83, 307.07°)
OKLaboklab(31.06% 0.0423 -0.135)
OKLCHoklch(31.06% 0.141 287.4)
XYZxyz(4.6506, 2.5629, 16.1660)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311972 #5A7219
analogous
#192D72 #311972 #5E1972
triadic
#311972 #723119 #197231
tetradic
#311972 #72192D #5A7219 #19725E
square
#311972 #72192D #5A7219 #19725E
split-complementary
#311972 #725E19 #2D7219
monochromatic
#0B0619 #1B0E40 #311972 #4724A4 #5E33D2

Accessibility & contrast

On white

13.88
#311972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311972
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311972#FFFFFF#000000##FFFFFF
##3119721.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#153244
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311972;
/* rgb */ color: rgb(49, 25, 114);
/* oklch */ color: oklch(31.1% 0.141 287.4);
Tailwind
colors: {
  custom: {
    50: '#71599b',
    500: '#311972',
    950: '#000000',
  },
}
SCSS
$custom: #311972;
$custom-light: #71599b;
$custom-dark: #000000;
JSON
{
  "hex": "#311972",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 256.18,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31064,
    "c": 0.14149,
    "h": 287.4
  },
  "luminance": 0.02563
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311972

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

Preview Lab → · Contrast checker → · Palette generator →

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