#311A79#311A79

#311A79 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.149 H 285.4°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#311A79
RGBrgb(49, 26, 121)
HSLhsl(255, 65%, 29%)
HSVhsv(255, 79%, 47%)
CMYKcmyk(59.5%, 78.5%, 0%, 52.5%)
CIE-LABlab(19.11, 37.10, -49.95)
CIE-LCHlch(19.11, 62.22, 306.60°)
OKLaboklab(31.92% 0.0395 -0.1438)
OKLCHoklch(31.92% 0.149 285.4)
XYZxyz(5.0862, 2.7719, 18.3525)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A79 #62791A
analogous
#1A3379 #311A79 #611A79
triadic
#311A79 #79311A #1A7931
tetradic
#311A79 #791A33 #62791A #1A7961
square
#311A79 #791A33 #62791A #1A7961
split-complementary
#311A79 #79611A #33791A
monochromatic
#0A0519 #1D0F47 #311A79 #4525AB #5F39D4

Accessibility & contrast

On white

13.51
#311A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#311A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A79
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A79#FFFFFF#000000##FFFFFF
##311A791.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#0C3548
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311a79;
/* rgb */ color: rgb(49, 26, 121);
/* oklch */ color: oklch(31.9% 0.149 285.4);
Tailwind
colors: {
  custom: {
    50: '#735aa1',
    500: '#311a79',
    950: '#000000',
  },
}
SCSS
$custom: #311a79;
$custom-light: #735aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#311a79",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 254.526,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31918,
    "c": 0.14917,
    "h": 285.4
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#311A79
secondary
#93AD41
accent
#E840BF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311A79

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

Preview Lab → · Contrast checker → · Palette generator →

#311A79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva