#311779#311779

#311779 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.152 H 285.9°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#311779
RGBrgb(49, 23, 121)
HSLhsl(256, 68%, 28%)
HSVhsv(256, 81%, 47%)
CMYKcmyk(59.5%, 81%, 0%, 52.5%)
CIE-LABlab(18.57, 38.65, -50.84)
CIE-LCHlch(18.57, 63.86, 307.24°)
OKLaboklab(31.54% 0.0417 -0.1464)
OKLCHoklch(31.54% 0.152 285.9)
XYZxyz(5.0232, 2.6459, 18.3315)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311779 #5F7917
analogous
#172E79 #311779 #621779
triadic
#311779 #793117 #177931
tetradic
#311779 #79172E #5F7917 #177962
square
#311779 #79172E #5F7917 #177962
split-complementary
#311779 #796217 #2E7917
monochromatic
#0A051A #1C0D46 #311779 #4621AC #5E32D8

Accessibility & contrast

On white

13.73
#311779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#311779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311779
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311779#FFFFFF#000000##FFFFFF
##3117791.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#0C3448
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311779;
/* rgb */ color: rgb(49, 23, 121);
/* oklch */ color: oklch(31.5% 0.152 285.9);
Tailwind
colors: {
  custom: {
    50: '#7358a1',
    500: '#311779',
    950: '#000000',
  },
}
SCSS
$custom: #311779;
$custom-light: #7358a1;
$custom-dark: #000000;
JSON
{
  "hex": "#311779",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 255.918,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3154,
    "c": 0.15225,
    "h": 285.9
  },
  "luminance": 0.02646
}

Semantic roles & 50–950 ramp

primary
#311779
secondary
#90AE3E
accent
#EB3DBD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #311779

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

Preview Lab → · Contrast checker → · Palette generator →

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