#311247#311247

#311247 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.096 H 307.9°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#311247
RGBrgb(49, 18, 71)
HSLhsl(275, 60%, 17%)
HSVhsv(275, 75%, 28%)
CMYKcmyk(31%, 74.6%, 0%, 72.2%)
CIE-LABlab(12.86, 26.63, -26.84)
CIE-LCHlch(12.86, 37.81, 314.77°)
OKLaboklab(26.05% 0.0591 -0.076)
OKLCHoklch(26.05% 0.096 307.9)
XYZxyz(2.6200, 1.5406, 6.1193)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311247 #284712
analogous
#161247 #311247 #471243
triadic
#311247 #473112 #124731
tetradic
#311247 #471612 #284712 #124347
square
#311247 #471612 #284712 #124347
split-complementary
#311247 #434712 #124716
monochromatic
#110618 #110618 #311247 #531E78 #742BA9

Accessibility & contrast

On white

16.05
#311247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#311247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311247
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311247#FFFFFF#000000##FFFFFF
##3112471.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#072246
Tritanopia (blue-blind)
#2E1D2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #311247;
/* rgb */ color: rgb(49, 18, 71);
/* oklch */ color: oklch(26.0% 0.096 307.9);
Tailwind
colors: {
  custom: {
    50: '#6c527b',
    500: '#311247',
    950: '#000000',
  },
}
SCSS
$custom: #311247;
$custom-light: #6c527b;
$custom-dark: #000000;
JSON
{
  "hex": "#311247",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 275.094,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26048,
    "c": 0.09629,
    "h": 307.9
  },
  "luminance": 0.01541
}

Semantic roles & 50–950 ramp

primary
#311247
secondary
#548035
accent
#E34587
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #311247

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

Preview Lab → · Contrast checker → · Palette generator →

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