#311577#311577

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

Color values

HEX#311577
RGBrgb(49, 21, 119)
HSLhsl(257, 70%, 27%)
HSVhsv(257, 82%, 47%)
CMYKcmyk(58.8%, 82.4%, 0%, 53.3%)
CIE-LABlab(18.01, 39.02, -50.47)
CIE-LCHlch(18.01, 63.79, 307.71°)
OKLaboklab(31.09% 0.0438 -0.1453)
OKLCHoklch(31.09% 0.152 286.8)
XYZxyz(4.8636, 2.5209, 17.6795)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311577 #5B7715
analogous
#152A77 #311577 #621577
triadic
#311577 #773115 #157731
tetradic
#311577 #77152A #5B7715 #157762
square
#311577 #77152A #5B7715 #157762
split-complementary
#311577 #776215 #2A7715
monochromatic
#0B051A #1C0C43 #311577 #461EAB #5E2DDA

Accessibility & contrast

On white

13.96
#311577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311577
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311577#FFFFFF#000000##FFFFFF
##3115771.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#103246
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311577;
/* rgb */ color: rgb(49, 21, 119);
/* oklch */ color: oklch(31.1% 0.152 286.8);
Tailwind
colors: {
  custom: {
    50: '#73579f',
    500: '#311577',
    950: '#000000',
  },
}
SCSS
$custom: #311577;
$custom-light: #73579f;
$custom-dark: #000000;
JSON
{
  "hex": "#311577",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 257.143,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31091,
    "c": 0.15176,
    "h": 286.8
  },
  "luminance": 0.02521
}

Semantic roles & 50–950 ramp

primary
#311577
secondary
#8CAD3B
accent
#ED3BBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #311577

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

Preview Lab → · Contrast checker → · Palette generator →

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