#311776#311776

#311776 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.149 H 286.7°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#311776
RGBrgb(49, 23, 118)
HSLhsl(256, 67%, 28%)
HSVhsv(256, 81%, 46%)
CMYKcmyk(58.5%, 80.5%, 0%, 53.7%)
CIE-LABlab(18.25, 37.73, -49.44)
CIE-LCHlch(18.25, 62.19, 307.35°)
OKLaboklab(31.22% 0.0427 -0.1423)
OKLCHoklch(31.22% 0.149 286.7)
XYZxyz(4.8421, 2.5735, 17.3776)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311776 #5C7617
analogous
#172C76 #311776 #601776
triadic
#311776 #763117 #177631
tetradic
#311776 #76172C #5C7617 #177660
square
#311776 #76172C #5C7617 #177660
split-complementary
#311776 #766017 #2C7617
monochromatic
#0B051A #1C0D43 #311776 #4621A9 #5E31D7

Accessibility & contrast

On white

13.86
#311776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#311776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311776
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311776#FFFFFF#000000##FFFFFF
##3117761.0013.861.5113.86
#FFFFFF13.861.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#113246
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311776;
/* rgb */ color: rgb(49, 23, 118);
/* oklch */ color: oklch(31.2% 0.149 286.7);
Tailwind
colors: {
  custom: {
    50: '#72589e',
    500: '#311776',
    950: '#000000',
  },
}
SCSS
$custom: #311776;
$custom-light: #72589e;
$custom-dark: #000000;
JSON
{
  "hex": "#311776",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 256.421,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31222,
    "c": 0.14859,
    "h": 286.7
  },
  "luminance": 0.02574
}

Semantic roles & 50–950 ramp

primary
#311776
secondary
#8DAB3E
accent
#EA3EBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311776

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

Preview Lab → · Contrast checker → · Palette generator →

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