#311068#311068

#311068 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.139 H 292.3°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#311068
RGBrgb(49, 16, 104)
HSLhsl(263, 73%, 24%)
HSVhsv(263, 85%, 41%)
CMYKcmyk(52.9%, 84.6%, 0%, 59.2%)
CIE-LABlab(15.61, 36.95, -44.68)
CIE-LCHlch(15.61, 57.98, 309.59°)
OKLaboklab(28.94% 0.0527 -0.1283)
OKLCHoklch(28.94% 0.139 292.3)
XYZxyz(3.9499, 2.0229, 13.2764)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311068 #476810
analogous
#101B68 #311068 #5D1068
triadic
#311068 #683110 #106831
tetradic
#311068 #68101B #476810 #10685D
square
#311068 #68101B #476810 #10685D
split-complementary
#311068 #685D10 #1B6810
monochromatic
#0C041B #180833 #311068 #4A189D #6320D2

Accessibility & contrast

On white

14.95
#311068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#311068 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311068
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311068#FFFFFF#000000##FFFFFF
##3110681.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#1F2A3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311068;
/* rgb */ color: rgb(49, 16, 104);
/* oklch */ color: oklch(28.9% 0.139 292.3);
Tailwind
colors: {
  custom: {
    50: '#705394',
    500: '#311068',
    950: '#000000',
  },
}
SCSS
$custom: #311068;
$custom-light: #705394;
$custom-dark: #000000;
JSON
{
  "hex": "#311068",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 104
  },
  "hsl": {
    "h": 262.5,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28939,
    "c": 0.13873,
    "h": 292.3
  },
  "luminance": 0.02023
}

Semantic roles & 50–950 ramp

primary
#311068
secondary
#77A034
accent
#F038AB
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311068

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

Preview Lab → · Contrast checker → · Palette generator →

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