#311977#311977

#311977 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.148 H 286.1°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#311977
RGBrgb(49, 25, 119)
HSLhsl(255, 65%, 28%)
HSVhsv(255, 79%, 47%)
CMYKcmyk(58.8%, 79%, 0%, 53.3%)
CIE-LABlab(18.71, 37.01, -49.31)
CIE-LCHlch(18.71, 61.65, 306.88°)
OKLaboklab(31.58% 0.0409 -0.142)
OKLCHoklch(31.58% 0.148 286.1)
XYZxyz(4.9430, 2.6799, 17.7060)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311977 #5F7719
analogous
#193077 #311977 #601977
triadic
#311977 #773119 #197731
tetradic
#311977 #771930 #5F7719 #197760
square
#311977 #771930 #5F7719 #197760
split-complementary
#311977 #776019 #307719
monochromatic
#0A0519 #1C0E44 #311977 #4624AA #5E36D5

Accessibility & contrast

On white

13.67
#311977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#311977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311977
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311977#FFFFFF#000000##FFFFFF
##3119771.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#0F3447
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311977;
/* rgb */ color: rgb(49, 25, 119);
/* oklch */ color: oklch(31.6% 0.148 286.1);
Tailwind
colors: {
  custom: {
    50: '#72599f',
    500: '#311977',
    950: '#000000',
  },
}
SCSS
$custom: #311977;
$custom-light: #72599f;
$custom-dark: #000000;
JSON
{
  "hex": "#311977",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 255.319,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3158,
    "c": 0.14775,
    "h": 286.1
  },
  "luminance": 0.0268
}

Semantic roles & 50–950 ramp

primary
#311977
secondary
#90AC40
accent
#E840BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #311977

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

Preview Lab → · Contrast checker → · Palette generator →

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