#311159#311159

#311159 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.120 H 298.2°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#311159
RGBrgb(49, 17, 89)
HSLhsl(267, 68%, 21%)
HSVhsv(267, 81%, 35%)
CMYKcmyk(44.9%, 80.9%, 0%, 65.1%)
CIE-LABlab(14.26, 32.19, -36.90)
CIE-LCHlch(14.26, 48.97, 311.09°)
OKLaboklab(27.54% 0.0567 -0.1055)
OKLCHoklch(27.54% 0.12 298.2)
XYZxyz(3.2698, 1.7751, 9.6196)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311159 #395911
analogous
#111559 #311159 #551159
triadic
#311159 #593111 #115931
tetradic
#311159 #591115 #395911 #115955
square
#311159 #591115 #395911 #115955
split-complementary
#311159 #595511 #155911
monochromatic
#0E051A #150726 #311159 #4D1B8C #6A25C0

Accessibility & contrast

On white

15.50
#311159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#311159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311159
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311159#FFFFFF#000000##FFFFFF
##3111591.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#272434
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311159;
/* rgb */ color: rgb(49, 17, 89);
/* oklch */ color: oklch(27.5% 0.120 298.2);
Tailwind
colors: {
  custom: {
    50: '#6e5389',
    500: '#311159',
    950: '#000000',
  },
}
SCSS
$custom: #311159;
$custom-light: #6e5389;
$custom-dark: #000000;
JSON
{
  "hex": "#311159",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 266.667,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27536,
    "c": 0.1198,
    "h": 298.2
  },
  "luminance": 0.01775
}

Semantic roles & 50–950 ramp

primary
#311159
secondary
#689234
accent
#EB3D9E
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311159

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

Preview Lab → · Contrast checker → · Palette generator →

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