#311763#311763

#311763 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.125 H 292.6°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#311763
RGBrgb(49, 23, 99)
HSLhsl(261, 62%, 24%)
HSVhsv(261, 77%, 39%)
CMYKcmyk(50.5%, 76.8%, 0%, 61.2%)
CIE-LABlab(16.34, 31.95, -40.18)
CIE-LCHlch(16.34, 51.34, 308.49°)
OKLaboklab(29.3% 0.048 -0.1152)
OKLCHoklch(29.3% 0.125 292.6)
XYZxyz(3.8245, 2.1665, 12.0186)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311763 #496317
analogous
#172363 #311763 #571763
triadic
#311763 #633117 #176331
tetradic
#311763 #631723 #496317 #176357
square
#311763 #631723 #496317 #176357
split-complementary
#311763 #635717 #236317
monochromatic
#0C0619 #180B31 #311763 #4A2395 #622EC6

Accessibility & contrast

On white

14.65
#311763 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#311763 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311763
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311763#FFFFFF#000000##FFFFFF
##3117631.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002762
Tritanopia (blue-blind)
#212B3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311763;
/* rgb */ color: rgb(49, 23, 99);
/* oklch */ color: oklch(29.3% 0.125 292.6);
Tailwind
colors: {
  custom: {
    50: '#6f5790',
    500: '#311763',
    950: '#000000',
  },
}
SCSS
$custom: #311763;
$custom-light: #6f5790;
$custom-dark: #000000;
JSON
{
  "hex": "#311763",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 99
  },
  "hsl": {
    "h": 260.526,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29297,
    "c": 0.12483,
    "h": 292.6
  },
  "luminance": 0.02167
}

Semantic roles & 50–950 ramp

primary
#311763
secondary
#7A9A3C
accent
#E542AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #311763

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

Preview Lab → · Contrast checker → · Palette generator →

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