#311164#311164

#311164 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.133 H 293.6°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#311164
RGBrgb(49, 17, 100)
HSLhsl(263, 71%, 23%)
HSVhsv(263, 83%, 39%)
CMYKcmyk(51%, 83%, 0%, 60.8%)
CIE-LABlab(15.35, 35.34, -42.47)
CIE-LCHlch(15.35, 55.25, 309.77°)
OKLaboklab(28.63% 0.0533 -0.1219)
OKLCHoklch(28.63% 0.133 293.6)
XYZxyz(3.7667, 1.9738, 12.2366)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311164 #446411
analogous
#111A64 #311164 #5A1164
triadic
#311164 #643111 #116431
tetradic
#311164 #64111A #446411 #11645A
square
#311164 #64111A #446411 #11645A
split-complementary
#311164 #645A11 #1A6411
monochromatic
#0D041A #170830 #311164 #4B1A98 #6423CD

Accessibility & contrast

On white

15.06
#311164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#311164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311164
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311164#FFFFFF#000000##FFFFFF
##3111641.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#21283A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311164;
/* rgb */ color: rgb(49, 17, 100);
/* oklch */ color: oklch(28.6% 0.133 293.6);
Tailwind
colors: {
  custom: {
    50: '#705391',
    500: '#311164',
    950: '#000000',
  },
}
SCSS
$custom: #311164;
$custom-light: #705391;
$custom-dark: #000000;
JSON
{
  "hex": "#311164",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 263.133,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28633,
    "c": 0.13299,
    "h": 293.6
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#311164
secondary
#749C35
accent
#EE3AA8
background
#F7F4F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311164

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

Preview Lab → · Contrast checker → · Palette generator →

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