#311565#311565

#311565 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.130 H 292.4°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#311565
RGBrgb(49, 21, 101)
HSLhsl(261, 66%, 24%)
HSVhsv(261, 79%, 40%)
CMYKcmyk(51.5%, 79.2%, 0%, 60.4%)
CIE-LABlab(16.15, 33.63, -41.81)
CIE-LCHlch(16.15, 53.66, 308.81°)
OKLaboklab(29.22% 0.0494 -0.12)
OKLCHoklch(29.22% 0.13 292.4)
XYZxyz(3.8831, 2.1287, 12.5157)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311565 #496515
analogous
#152165 #311565 #591565
triadic
#311565 #653115 #156531
tetradic
#311565 #651521 #496515 #156559
square
#311565 #651521 #496515 #156559
split-complementary
#311565 #655915 #216515
monochromatic
#0C0519 #180A32 #311565 #4A2098 #622ACA

Accessibility & contrast

On white

14.73
#311565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311565
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311565#FFFFFF#000000##FFFFFF
##3115651.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#202B3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311565;
/* rgb */ color: rgb(49, 21, 101);
/* oklch */ color: oklch(29.2% 0.130 292.4);
Tailwind
colors: {
  custom: {
    50: '#6f5692',
    500: '#311565',
    950: '#000000',
  },
}
SCSS
$custom: #311565;
$custom-light: #6f5692;
$custom-dark: #000000;
JSON
{
  "hex": "#311565",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 261,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29224,
    "c": 0.12977,
    "h": 292.4
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#311565
secondary
#7A9C3A
accent
#E93FAD
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311565

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

Preview Lab → · Contrast checker → · Palette generator →

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