#311568#311568

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

Color values

HEX#311568
RGBrgb(49, 21, 104)
HSLhsl(260, 66%, 25%)
HSVhsv(260, 80%, 41%)
CMYKcmyk(52.9%, 79.8%, 0%, 59.2%)
CIE-LABlab(16.45, 34.53, -43.30)
CIE-LCHlch(16.45, 55.38, 308.57°)
OKLaboklab(29.53% 0.0486 -0.1243)
OKLCHoklch(29.53% 0.133 291.3)
XYZxyz(4.0328, 2.1886, 13.3040)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311568 #4C6815
analogous
#152368 #311568 #5B1568
triadic
#311568 #683115 #156831
tetradic
#311568 #681523 #4C6815 #15685B
square
#311568 #681523 #4C6815 #15685B
split-complementary
#311568 #685B15 #236815
monochromatic
#0C0519 #190B35 #311568 #491F9B #612ACE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##311568#FFFFFF#000000##FFFFFF
##3115681.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)
#002A6A
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#1E2C3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311568;
/* rgb */ color: rgb(49, 21, 104);
/* oklch */ color: oklch(29.5% 0.133 291.3);
Tailwind
colors: {
  custom: {
    50: '#705694',
    500: '#311568',
    950: '#000000',
  },
}
SCSS
$custom: #311568;
$custom-light: #705694;
$custom-dark: #000000;
JSON
{
  "hex": "#311568",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 260.241,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29525,
    "c": 0.13349,
    "h": 291.3
  },
  "luminance": 0.02189
}

Semantic roles & 50–950 ramp

primary
#311568
secondary
#7D9F3A
accent
#E93EB0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311568

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

Preview Lab → · Contrast checker → · Palette generator →

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