#311677#311677

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

Color values

HEX#311677
RGBrgb(49, 22, 119)
HSLhsl(257, 69%, 28%)
HSVhsv(257, 82%, 47%)
CMYKcmyk(58.8%, 81.5%, 0%, 53.3%)
CIE-LABlab(18.18, 38.53, -50.19)
CIE-LCHlch(18.18, 63.28, 307.52°)
OKLaboklab(31.21% 0.0431 -0.1445)
OKLCHoklch(31.21% 0.151 286.6)
XYZxyz(4.8823, 2.5584, 17.6857)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311677 #5C7716
analogous
#162C77 #311677 #611677
triadic
#311677 #773116 #167731
tetradic
#311677 #77162C #5C7716 #167761
square
#311677 #77162C #5C7716 #167761
split-complementary
#311677 #776116 #2C7716
monochromatic
#0B051A #1C0C43 #311677 #4620AB #5E2FD9

Accessibility & contrast

On white

13.89
#311677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311677
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311677#FFFFFF#000000##FFFFFF
##3116771.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#0F3246
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311677;
/* rgb */ color: rgb(49, 22, 119);
/* oklch */ color: oklch(31.2% 0.151 286.6);
Tailwind
colors: {
  custom: {
    50: '#73579f',
    500: '#311677',
    950: '#000000',
  },
}
SCSS
$custom: #311677;
$custom-light: #73579f;
$custom-dark: #000000;
JSON
{
  "hex": "#311677",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 256.701,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31208,
    "c": 0.1508,
    "h": 286.6
  },
  "luminance": 0.02559
}

Semantic roles & 50–950 ramp

primary
#311677
secondary
#8DAC3C
accent
#EC3CBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #311677

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

Preview Lab → · Contrast checker → · Palette generator →

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