#312079#312079

#312079 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.142 H 284.0°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#312079
RGBrgb(49, 32, 121)
HSLhsl(251, 58%, 30%)
HSVhsv(251, 74%, 47%)
CMYKcmyk(59.5%, 73.6%, 0%, 52.5%)
CIE-LABlab(20.31, 33.72, -47.98)
CIE-LCHlch(20.31, 58.64, 305.10°)
OKLaboklab(32.77% 0.0346 -0.1381)
OKLCHoklch(32.77% 0.142 284)
XYZxyz(5.2333, 3.0661, 18.4015)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312079 #687920
analogous
#203B79 #312079 #5E2079
triadic
#312079 #793120 #207931
tetradic
#312079 #79203B #687920 #20795E
square
#312079 #79203B #687920 #20795E
split-complementary
#312079 #795E20 #3B7920
monochromatic
#0A0618 #1D1349 #312079 #452DA9 #6045CE

Accessibility & contrast

On white

13.02
#312079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#312079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312079
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312079#FFFFFF#000000##FFFFFF
##3120791.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#0B384A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #312079;
/* rgb */ color: rgb(49, 32, 121);
/* oklch */ color: oklch(32.8% 0.142 284.0);
Tailwind
colors: {
  custom: {
    50: '#725da1',
    500: '#312079',
    950: '#000000',
  },
}
SCSS
$custom: #312079;
$custom-light: #725da1;
$custom-dark: #000000;
JSON
{
  "hex": "#312079",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 121
  },
  "hsl": {
    "h": 251.461,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.32767,
    "c": 0.14238,
    "h": 284
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#312079
secondary
#99AC49
accent
#E146C4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #312079

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

Preview Lab → · Contrast checker → · Palette generator →

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