#311567#311567

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

Color values

HEX#311567
RGBrgb(49, 21, 103)
HSLhsl(260, 66%, 24%)
HSVhsv(260, 80%, 40%)
CMYKcmyk(52.4%, 79.6%, 0%, 59.6%)
CIE-LABlab(16.35, 34.23, -42.81)
CIE-LCHlch(16.35, 54.81, 308.65°)
OKLaboklab(29.42% 0.0489 -0.1229)
OKLCHoklch(29.42% 0.132 291.7)
XYZxyz(3.9823, 2.1684, 13.0381)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311567 #4B6715
analogous
#152267 #311567 #5A1567
triadic
#311567 #673115 #156731
tetradic
#311567 #671522 #4B6715 #15675A
square
#311567 #671522 #4B6715 #15675A
split-complementary
#311567 #675A15 #226715
monochromatic
#0C0519 #190B34 #311567 #491F9A #612ACD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##311567#FFFFFF#000000##FFFFFF
##3115671.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)
#002A69
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#1F2B3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311567;
/* rgb */ color: rgb(49, 21, 103);
/* oklch */ color: oklch(29.4% 0.132 291.7);
Tailwind
colors: {
  custom: {
    50: '#705693',
    500: '#311567',
    950: '#000000',
  },
}
SCSS
$custom: #311567;
$custom-light: #705693;
$custom-dark: #000000;
JSON
{
  "hex": "#311567",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 103
  },
  "hsl": {
    "h": 260.488,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29424,
    "c": 0.13226,
    "h": 291.7
  },
  "luminance": 0.02169
}

Semantic roles & 50–950 ramp

primary
#311567
secondary
#7C9E3A
accent
#E93FAF
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311567

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

Preview Lab → · Contrast checker → · Palette generator →

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