#311679#311679

#311679 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.153 H 286.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#311679
RGBrgb(49, 22, 121)
HSLhsl(256, 69%, 28%)
HSVhsv(256, 82%, 47%)
CMYKcmyk(59.5%, 81.8%, 0%, 52.5%)
CIE-LABlab(18.40, 39.14, -51.12)
CIE-LCHlch(18.40, 64.38, 307.44°)
OKLaboklab(31.42% 0.0424 -0.1472)
OKLCHoklch(31.42% 0.153 286.1)
XYZxyz(5.0037, 2.6070, 18.3250)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311679 #5E7916
analogous
#162C79 #311679 #621679
triadic
#311679 #793116 #167931
tetradic
#311679 #79162C #5E7916 #167962
square
#311679 #79162C #5E7916 #167962
split-complementary
#311679 #796216 #2C7916
monochromatic
#0A051A #1C0D45 #311679 #461FAD #5E30D9

Accessibility & contrast

On white

13.80
#311679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#311679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311679
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311679#FFFFFF#000000##FFFFFF
##3116791.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#0C3347
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311679;
/* rgb */ color: rgb(49, 22, 121);
/* oklch */ color: oklch(31.4% 0.153 286.1);
Tailwind
colors: {
  custom: {
    50: '#7357a1',
    500: '#311679',
    950: '#000000',
  },
}
SCSS
$custom: #311679;
$custom-light: #7357a1;
$custom-dark: #000000;
JSON
{
  "hex": "#311679",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 256.364,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31422,
    "c": 0.15322,
    "h": 286.1
  },
  "luminance": 0.02607
}

Semantic roles & 50–950 ramp

primary
#311679
secondary
#8FAE3D
accent
#EC3CBC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #311679

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

Preview Lab → · Contrast checker → · Palette generator →

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