#311165#311165

#311165 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.134 H 293.2°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#311165
RGBrgb(49, 17, 101)
HSLhsl(263, 71%, 23%)
HSVhsv(263, 83%, 40%)
CMYKcmyk(51.5%, 83.2%, 0%, 60.4%)
CIE-LABlab(15.45, 35.63, -42.96)
CIE-LCHlch(15.45, 55.81, 309.67°)
OKLaboklab(28.74% 0.0529 -0.1233)
OKLCHoklch(28.74% 0.134 293.2)
XYZxyz(3.8154, 1.9933, 12.4931)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311165 #456511
analogous
#111B65 #311165 #5B1165
triadic
#311165 #653111 #116531
tetradic
#311165 #65111B #456511 #11655B
square
#311165 #65111B #456511 #11655B
split-complementary
#311165 #655B11 #1B6511
monochromatic
#0D041A #180831 #311165 #4A1A99 #6423CE

Accessibility & contrast

On white

15.02
#311165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#311165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311165
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311165#FFFFFF#000000##FFFFFF
##3111651.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#21293B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311165;
/* rgb */ color: rgb(49, 17, 101);
/* oklch */ color: oklch(28.7% 0.134 293.2);
Tailwind
colors: {
  custom: {
    50: '#705392',
    500: '#311165',
    950: '#000000',
  },
}
SCSS
$custom: #311165;
$custom-light: #705392;
$custom-dark: #000000;
JSON
{
  "hex": "#311165",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 262.857,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28736,
    "c": 0.13418,
    "h": 293.2
  },
  "luminance": 0.01993
}

Semantic roles & 50–950 ramp

primary
#311165
secondary
#759D35
accent
#EE3AA9
background
#F7F4F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311165

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

Preview Lab → · Contrast checker → · Palette generator →

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