#311980#311980

#311980 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.159 H 283.9°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#311980
RGBrgb(49, 25, 128)
HSLhsl(254, 67%, 30%)
HSVhsv(254, 80%, 50%)
CMYKcmyk(61.7%, 80.5%, 0%, 49.8%)
CIE-LABlab(19.67, 39.77, -53.49)
CIE-LCHlch(19.67, 66.66, 306.64°)
OKLaboklab(32.53% 0.0382 -0.1542)
OKLCHoklch(32.53% 0.159 283.9)
XYZxyz(5.5093, 2.9064, 20.6886)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311980 #688019
analogous
#193480 #311980 #651980
triadic
#311980 #803119 #198031
tetradic
#311980 #801934 #688019 #198065
square
#311980 #801934 #688019 #198065
split-complementary
#311980 #806519 #348019
monochromatic
#0A051A #1D0F4D #311980 #4523B3 #603BD9

Accessibility & contrast

On white

13.28
#311980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#311980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311980
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311980#FFFFFF#000000##FFFFFF
##3119801.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311980;
/* rgb */ color: rgb(49, 25, 128);
/* oklch */ color: oklch(32.5% 0.159 283.9);
Tailwind
colors: {
  custom: {
    50: '#7459a6',
    500: '#311980',
    950: '#000000',
  },
}
SCSS
$custom: #311980;
$custom-light: #7459a6;
$custom-dark: #000000;
JSON
{
  "hex": "#311980",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 253.981,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.32531,
    "c": 0.15883,
    "h": 283.9
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#311980
secondary
#99B441
accent
#EA3EC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311980

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

Preview Lab → · Contrast checker → · Palette generator →

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