#311376#311376

#311376 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.152 H 287.4°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#311376
RGBrgb(49, 19, 118)
HSLhsl(258, 72%, 27%)
HSVhsv(258, 84%, 46%)
CMYKcmyk(58.5%, 83.9%, 0%, 53.7%)
CIE-LABlab(17.58, 39.66, -50.53)
CIE-LCHlch(17.58, 64.24, 308.12°)
OKLaboklab(30.76% 0.0455 -0.1455)
OKLCHoklch(30.76% 0.152 287.4)
XYZxyz(4.7685, 2.4265, 17.3531)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311376 #587613
analogous
#132676 #311376 #631376
triadic
#311376 #763113 #137631
tetradic
#311376 #761326 #587613 #137663
square
#311376 #761326 #587613 #137663
split-complementary
#311376 #766313 #267613
monochromatic
#0B041A #1B0B41 #311376 #471BAB #5E27DC

Accessibility & contrast

On white

14.14
#311376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#311376 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311376
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311376#FFFFFF#000000##FFFFFF
##3113761.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#113145
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311376;
/* rgb */ color: rgb(49, 19, 118);
/* oklch */ color: oklch(30.8% 0.152 287.4);
Tailwind
colors: {
  custom: {
    50: '#73569f',
    500: '#311376',
    950: '#000000',
  },
}
SCSS
$custom: #311376;
$custom-light: #73569f;
$custom-dark: #000000;
JSON
{
  "hex": "#311376",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 118
  },
  "hsl": {
    "h": 258.182,
    "s": 72.263,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3076,
    "c": 0.15243,
    "h": 287.4
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#311376
secondary
#89AC39
accent
#EF39B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #311376

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

Preview Lab → · Contrast checker → · Palette generator →

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