#311676#311676

#311676 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.150 H 286.9°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#311676
RGBrgb(49, 22, 118)
HSLhsl(257, 69%, 27%)
HSVhsv(257, 81%, 46%)
CMYKcmyk(58.5%, 81.4%, 0%, 53.7%)
CIE-LABlab(18.07, 38.23, -49.72)
CIE-LCHlch(18.07, 62.72, 307.56°)
OKLaboklab(31.1% 0.0434 -0.1431)
OKLCHoklch(31.1% 0.15 286.9)
XYZxyz(4.8226, 2.5345, 17.3711)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311676 #5B7616
analogous
#162B76 #311676 #611676
triadic
#311676 #763116 #167631
tetradic
#311676 #76162B #5B7616 #167661
square
#311676 #76162B #5B7616 #167661
split-complementary
#311676 #766116 #2B7616
monochromatic
#0B051A #1C0C42 #311676 #4620AA #5E2ED8

Accessibility & contrast

On white

13.93
#311676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311676
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311676#FFFFFF#000000##FFFFFF
##3116761.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#113246
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311676;
/* rgb */ color: rgb(49, 22, 118);
/* oklch */ color: oklch(31.1% 0.150 286.9);
Tailwind
colors: {
  custom: {
    50: '#72579e',
    500: '#311676',
    950: '#000000',
  },
}
SCSS
$custom: #311676;
$custom-light: #72579e;
$custom-dark: #000000;
JSON
{
  "hex": "#311676",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 256.875,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31101,
    "c": 0.14959,
    "h": 286.9
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#311676
secondary
#8CAC3C
accent
#EB3CBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #311676

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

Preview Lab → · Contrast checker → · Palette generator →

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