#311790#311790

#311790 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.180 H 280.9°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#311790
RGBrgb(49, 23, 144)
HSLhsl(253, 72%, 33%)
HSVhsv(253, 84%, 56%)
CMYKcmyk(66%, 84%, 0%, 43.5%)
CIE-LABlab(21.13, 45.54, -61.11)
CIE-LCHlch(21.13, 76.21, 306.69°)
OKLaboklab(34.07% 0.034 -0.1764)
OKLCHoklch(34.07% 0.18 280.9)
XYZxyz(6.6055, 3.2789, 26.6649)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311790 #769017
analogous
#173990 #311790 #6E1790
triadic
#311790 #903117 #179031
tetradic
#311790 #901739 #769017 #17906E
square
#311790 #901739 #769017 #17906E
split-complementary
#311790 #906E17 #399017
monochromatic
#0D0626 #1F0F5B #311790 #431FC5 #6341E1

Accessibility & contrast

On white

12.68
#311790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#311790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311790
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311790#FFFFFF#000000##FFFFFF
##3117901.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #311790;
/* rgb */ color: rgb(49, 23, 144);
/* oklch */ color: oklch(34.1% 0.180 280.9);
Tailwind
colors: {
  custom: {
    50: '#775ab2',
    500: '#311790',
    950: '#000000',
  },
}
SCSS
$custom: #311790;
$custom-light: #775ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#311790",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 252.893,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34074,
    "c": 0.17963,
    "h": 280.9
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#311790
secondary
#A6C142
accent
#EF39C8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311790

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

Preview Lab → · Contrast checker → · Palette generator →

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