#311576#311576

#311576 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.151 H 287.0°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#311576
RGBrgb(49, 21, 118)
HSLhsl(257, 70%, 27%)
HSVhsv(257, 82%, 46%)
CMYKcmyk(58.5%, 82.2%, 0%, 53.7%)
CIE-LABlab(17.91, 38.72, -50.00)
CIE-LCHlch(17.91, 63.24, 307.75°)
OKLaboklab(30.98% 0.0441 -0.144)
OKLCHoklch(30.98% 0.151 287)
XYZxyz(4.8038, 2.4970, 17.3649)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311576 #5A7615
analogous
#152976 #311576 #621576
triadic
#311576 #763115 #157631
tetradic
#311576 #761529 #5A7615 #157662
square
#311576 #761529 #5A7615 #157662
split-complementary
#311576 #766215 #297615
monochromatic
#0B051A #1B0C42 #311576 #471EAA #5E2CD9

Accessibility & contrast

On white

14.01
#311576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#311576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311576
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311576#FFFFFF#000000##FFFFFF
##3115761.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.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: #311576;
/* rgb */ color: rgb(49, 21, 118);
/* oklch */ color: oklch(31.0% 0.151 287.0);
Tailwind
colors: {
  custom: {
    50: '#72579f',
    500: '#311576',
    950: '#000000',
  },
}
SCSS
$custom: #311576;
$custom-light: #72579f;
$custom-dark: #000000;
JSON
{
  "hex": "#311576",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 257.32,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30984,
    "c": 0.15057,
    "h": 287
  },
  "luminance": 0.02497
}

Semantic roles & 50–950 ramp

primary
#311576
secondary
#8BAC3B
accent
#ED3BB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #311576

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

Preview Lab → · Contrast checker → · Palette generator →

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