#311142#311142

#311142 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.092 H 311.7°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#311142
RGBrgb(49, 17, 66)
HSLhsl(279, 59%, 16%)
HSVhsv(279, 74%, 26%)
CMYKcmyk(25.8%, 74.2%, 0%, 74.1%)
CIE-LABlab(12.27, 25.86, -24.30)
CIE-LCHlch(12.27, 35.48, 316.78°)
OKLaboklab(25.5% 0.061 -0.0685)
OKLCHoklch(25.5% 0.092 311.7)
XYZxyz(2.4503, 1.4473, 5.3035)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311142 #224211
analogous
#191142 #311142 #42113B
triadic
#311142 #423111 #114231
tetradic
#311142 #421911 #224211 #113B42
square
#311142 #421911 #224211 #113B42
split-complementary
#311142 #3B4211 #114219
monochromatic
#120618 #120618 #311142 #551E73 #792AA3

Accessibility & contrast

On white

16.29
#311142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#311142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311142
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311142#FFFFFF#000000##FFFFFF
##3111421.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#0C2141
Tritanopia (blue-blind)
#2F1B27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #311142;
/* rgb */ color: rgb(49, 17, 66);
/* oklch */ color: oklch(25.5% 0.092 311.7);
Tailwind
colors: {
  custom: {
    50: '#6b5277',
    500: '#311142',
    950: '#000000',
  },
}
SCSS
$custom: #311142;
$custom-light: #6b5277;
$custom-dark: #000000;
JSON
{
  "hex": "#311142",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 279.184,
    "s": 59.036,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25496,
    "c": 0.09171,
    "h": 311.7
  },
  "luminance": 0.01447
}

Semantic roles & 50–950 ramp

primary
#311142
secondary
#4C7C33
accent
#E2467C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #311142

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

Preview Lab → · Contrast checker → · Palette generator →

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