#311764#311764

#311764 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.126 H 292.3°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#311764
RGBrgb(49, 23, 100)
HSLhsl(260, 63%, 24%)
HSVhsv(260, 77%, 39%)
CMYKcmyk(51%, 77%, 0%, 60.8%)
CIE-LABlab(16.43, 32.25, -40.69)
CIE-LCHlch(16.43, 51.92, 308.40°)
OKLaboklab(29.39% 0.0478 -0.1167)
OKLCHoklch(29.39% 0.126 292.3)
XYZxyz(3.8726, 2.1857, 12.2720)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311764 #4A6417
analogous
#172464 #311764 #581764
triadic
#311764 #643117 #176431
tetradic
#311764 #641724 #4A6417 #176458
square
#311764 #641724 #4A6417 #176458
split-complementary
#311764 #645817 #246417
monochromatic
#0C0619 #190C32 #311764 #492296 #622EC8

Accessibility & contrast

On white

14.61
#311764 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#311764 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311764
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311764#FFFFFF#000000##FFFFFF
##3117641.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002763
Tritanopia (blue-blind)
#212B3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311764;
/* rgb */ color: rgb(49, 23, 100);
/* oklch */ color: oklch(29.4% 0.126 292.3);
Tailwind
colors: {
  custom: {
    50: '#6f5791',
    500: '#311764',
    950: '#000000',
  },
}
SCSS
$custom: #311764;
$custom-light: #6f5791;
$custom-dark: #000000;
JSON
{
  "hex": "#311764",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 100
  },
  "hsl": {
    "h": 260.26,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29394,
    "c": 0.1261,
    "h": 292.3
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

primary
#311764
secondary
#7B9A3C
accent
#E642AE
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311764

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

Preview Lab → · Contrast checker → · Palette generator →

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