#311160#311160

#311160 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.128 H 295.2°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#311160
RGBrgb(49, 17, 96)
HSLhsl(264, 70%, 22%)
HSVhsv(264, 82%, 38%)
CMYKcmyk(49%, 82.3%, 0%, 62.4%)
CIE-LABlab(14.94, 34.19, -40.47)
CIE-LCHlch(14.94, 52.98, 310.19°)
OKLaboklab(28.23% 0.0546 -0.116)
OKLCHoklch(28.23% 0.128 295.2)
XYZxyz(3.5778, 1.8983, 11.2420)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311160 #406011
analogous
#111860 #311160 #591160
triadic
#311160 #603111 #116031
tetradic
#311160 #601118 #406011 #116059
square
#311160 #601118 #406011 #116059
split-complementary
#311160 #605911 #186011
monochromatic
#0D051A #16082C #311160 #4C1A94 #6623C8

Accessibility & contrast

On white

15.22
#311160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#311160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311160
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311160#FFFFFF#000000##FFFFFF
##3111601.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311160;
/* rgb */ color: rgb(49, 17, 96);
/* oklch */ color: oklch(28.2% 0.128 295.2);
Tailwind
colors: {
  custom: {
    50: '#6f538e',
    500: '#311160',
    950: '#000000',
  },
}
SCSS
$custom: #311160;
$custom-light: #6f538e;
$custom-dark: #000000;
JSON
{
  "hex": "#311160",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 264.304,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28227,
    "c": 0.12821,
    "h": 295.2
  },
  "luminance": 0.01898
}

Semantic roles & 50–950 ramp

primary
#311160
secondary
#709934
accent
#ED3BA5
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311160

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

Preview Lab → · Contrast checker → · Palette generator →

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