#311147#311147

#311147 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.098 H 308.2°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#311147
RGBrgb(49, 17, 71)
HSLhsl(276, 61%, 17%)
HSVhsv(276, 76%, 28%)
CMYKcmyk(31%, 76.1%, 0%, 72.2%)
CIE-LABlab(12.66, 27.18, -27.17)
CIE-LCHlch(12.66, 38.43, 315.02°)
OKLaboklab(25.91% 0.0605 -0.0769)
OKLCHoklch(25.91% 0.098 308.2)
XYZxyz(2.6042, 1.5088, 6.1141)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311147 #274711
analogous
#161147 #311147 #471142
triadic
#311147 #473111 #114731
tetradic
#311147 #471611 #274711 #114247
square
#311147 #471611 #274711 #114247
split-complementary
#311147 #424711 #114716
monochromatic
#110619 #110619 #311147 #531D78 #7529AA

Accessibility & contrast

On white

16.13
#311147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#311147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311147
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311147#FFFFFF#000000##FFFFFF
##3111471.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311147;
/* rgb */ color: rgb(49, 17, 71);
/* oklch */ color: oklch(25.9% 0.098 308.2);
Tailwind
colors: {
  custom: {
    50: '#6c527b',
    500: '#311147',
    950: '#000000',
  },
}
SCSS
$custom: #311147;
$custom-light: #6c527b;
$custom-dark: #000000;
JSON
{
  "hex": "#311147",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 275.556,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25905,
    "c": 0.09784,
    "h": 308.2
  },
  "luminance": 0.01509
}

Semantic roles & 50–950 ramp

primary
#311147
secondary
#538133
accent
#E44385
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #311147

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

Preview Lab → · Contrast checker → · Palette generator →

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