#311342#311342

#311342 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.088 H 311.1°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#311342
RGBrgb(49, 19, 66)
HSLhsl(278, 55%, 17%)
HSVhsv(278, 71%, 26%)
CMYKcmyk(25.8%, 71.2%, 0%, 74.1%)
CIE-LABlab(12.68, 24.71, -23.63)
CIE-LCHlch(12.68, 34.19, 316.28°)
OKLaboklab(25.8% 0.0581 -0.0666)
OKLCHoklch(25.8% 0.088 311.1)
XYZxyz(2.4827, 1.5121, 5.3143)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311342 #244213
analogous
#1A1342 #311342 #42133C
triadic
#311342 #423113 #134231
tetradic
#311342 #421A13 #244213 #133C42
square
#311342 #421A13 #244213 #133C42
split-complementary
#311342 #3C4213 #13421A
monochromatic
#120718 #120718 #311342 #542172 #782EA1

Accessibility & contrast

On white

16.12
#311342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311342
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311342#FFFFFF#000000##FFFFFF
##3113421.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011F43
Deuteranopia (green-blind)
#0E2141
Tritanopia (blue-blind)
#2F1C28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #311342;
/* rgb */ color: rgb(49, 19, 66);
/* oklch */ color: oklch(25.8% 0.088 311.1);
Tailwind
colors: {
  custom: {
    50: '#6b5377',
    500: '#311342',
    950: '#000000',
  },
}
SCSS
$custom: #311342;
$custom-light: #6b5377;
$custom-dark: #000000;
JSON
{
  "hex": "#311342",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 66
  },
  "hsl": {
    "h": 278.298,
    "s": 55.294,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25796,
    "c": 0.08838,
    "h": 311.1
  },
  "luminance": 0.01512
}

Semantic roles & 50–950 ramp

primary
#311342
secondary
#4F7B36
accent
#DF497F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #311342

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

Preview Lab → · Contrast checker → · Palette generator →

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