#311060#311060

#311060 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.129 H 295.4°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#311060
RGBrgb(49, 16, 96)
HSLhsl(265, 71%, 22%)
HSVhsv(265, 83%, 38%)
CMYKcmyk(49%, 83.3%, 0%, 62.4%)
CIE-LABlab(14.78, 34.67, -40.75)
CIE-LCHlch(14.78, 53.50, 310.39°)
OKLaboklab(28.11% 0.0555 -0.1168)
OKLCHoklch(28.11% 0.129 295.4)
XYZxyz(3.5627, 1.8680, 11.2369)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311060 #3F6010
analogous
#101760 #311060 #591060
triadic
#311060 #603110 #106031
tetradic
#311060 #601017 #3F6010 #106059
square
#311060 #601017 #3F6010 #106059
split-complementary
#311060 #605910 #176010
monochromatic
#0D041A #16072C #311060 #4C1994 #6721C9

Accessibility & contrast

On white

15.29
#311060 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#311060 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311060
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311060#FFFFFF#000000##FFFFFF
##3110601.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00245F
Tritanopia (blue-blind)
#242638
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311060;
/* rgb */ color: rgb(49, 16, 96);
/* oklch */ color: oklch(28.1% 0.129 295.4);
Tailwind
colors: {
  custom: {
    50: '#6f538e',
    500: '#311060',
    950: '#000000',
  },
}
SCSS
$custom: #311060;
$custom-light: #6f538e;
$custom-dark: #000000;
JSON
{
  "hex": "#311060",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 96
  },
  "hsl": {
    "h": 264.75,
    "s": 71.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28111,
    "c": 0.1293,
    "h": 295.4
  },
  "luminance": 0.01868
}

Semantic roles & 50–950 ramp

primary
#311060
secondary
#6F9933
accent
#EE3AA4
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #311060

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

Preview Lab → · Contrast checker → · Palette generator →

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