#311876#311876

#311876 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.148 H 286.5°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#311876
RGBrgb(49, 24, 118)
HSLhsl(256, 66%, 28%)
HSVhsv(256, 80%, 46%)
CMYKcmyk(58.5%, 79.7%, 0%, 53.7%)
CIE-LABlab(18.43, 37.22, -49.14)
CIE-LCHlch(18.43, 61.65, 307.14°)
OKLaboklab(31.35% 0.0419 -0.1415)
OKLCHoklch(31.35% 0.148 286.5)
XYZxyz(4.8623, 2.6140, 17.3844)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311876 #5D7618
analogous
#182E76 #311876 #601876
triadic
#311876 #763118 #187631
tetradic
#311876 #76182E #5D7618 #187660
square
#311876 #76182E #5D7618 #187660
split-complementary
#311876 #766018 #2E7618
monochromatic
#0B0519 #1C0E43 #311876 #4622A9 #5E33D5

Accessibility & contrast

On white

13.79
#311876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#311876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311876
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311876#FFFFFF#000000##FFFFFF
##3118761.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311876;
/* rgb */ color: rgb(49, 24, 118);
/* oklch */ color: oklch(31.3% 0.148 286.5);
Tailwind
colors: {
  custom: {
    50: '#72589e',
    500: '#311876',
    950: '#000000',
  },
}
SCSS
$custom: #311876;
$custom-light: #72589e;
$custom-dark: #000000;
JSON
{
  "hex": "#311876",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 255.957,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31347,
    "c": 0.14756,
    "h": 286.5
  },
  "luminance": 0.02614
}

Semantic roles & 50–950 ramp

primary
#311876
secondary
#8EAB3F
accent
#E93FBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311876

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

Preview Lab → · Contrast checker → · Palette generator →

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