#311167#311167

#311167 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.137 H 292.5°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#311167
RGBrgb(49, 17, 103)
HSLhsl(262, 72%, 24%)
HSVhsv(262, 83%, 40%)
CMYKcmyk(52.4%, 83.5%, 0%, 59.6%)
CIE-LABlab(15.66, 36.21, -43.94)
CIE-LCHlch(15.66, 56.93, 309.49°)
OKLaboklab(28.94% 0.0523 -0.1262)
OKLCHoklch(28.94% 0.137 292.5)
XYZxyz(3.9146, 2.0330, 13.0155)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311167 #476711
analogous
#111C67 #311167 #5C1167
triadic
#311167 #673111 #116731
tetradic
#311167 #67111C #476711 #11675C
square
#311167 #67111C #476711 #11675C
split-complementary
#311167 #675C11 #1C6711
monochromatic
#0C041A #180832 #311167 #4A1A9C #6322D0

Accessibility & contrast

On white

14.93
#311167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#311167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311167
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311167#FFFFFF#000000##FFFFFF
##3111671.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#1F2A3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311167;
/* rgb */ color: rgb(49, 17, 103);
/* oklch */ color: oklch(28.9% 0.137 292.5);
Tailwind
colors: {
  custom: {
    50: '#705493',
    500: '#311167',
    950: '#000000',
  },
}
SCSS
$custom: #311167;
$custom-light: #705493;
$custom-dark: #000000;
JSON
{
  "hex": "#311167",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 262.326,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28943,
    "c": 0.13656,
    "h": 292.5
  },
  "luminance": 0.02033
}

Semantic roles & 50–950 ramp

primary
#311167
secondary
#779F35
accent
#EE39AB
background
#F7F4F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311167

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

Preview Lab → · Contrast checker → · Palette generator →

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