#311D50#311D50

#311D50 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.090 H 298.6°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#311D50
RGBrgb(49, 29, 80)
HSLhsl(264, 47%, 21%)
HSVhsv(264, 64%, 31%)
CMYKcmyk(38.8%, 63.7%, 0%, 68.6%)
CIE-LABlab(16.06, 22.48, -27.89)
CIE-LCHlch(16.06, 35.83, 308.87°)
OKLaboklab(28.59% 0.0432 -0.0791)
OKLCHoklch(28.59% 0.09 298.6)
XYZxyz(3.1536, 2.1108, 7.8291)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D50 #3C501D
analogous
#1D2350 #311D50 #4B1D50
triadic
#311D50 #50311D #1D5031
tetradic
#311D50 #501D23 #3C501D #1D504B
square
#311D50 #501D23 #3C501D #1D504B
split-complementary
#311D50 #504B1D #23501D
monochromatic
#0E0816 #150D23 #311D50 #4D2D7D #683EAA

Accessibility & contrast

On white

14.77
#311D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#311D50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D50
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D50#FFFFFF#000000##FFFFFF
##311D501.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042852
Deuteranopia (green-blind)
#0C274F
Tritanopia (blue-blind)
#2A2833
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311d50;
/* rgb */ color: rgb(49, 29, 80);
/* oklch */ color: oklch(28.6% 0.090 298.6);
Tailwind
colors: {
  custom: {
    50: '#6c5a81',
    500: '#311d50',
    950: '#000000',
  },
}
SCSS
$custom: #311d50;
$custom-light: #6c5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#311d50",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 80
  },
  "hsl": {
    "h": 263.529,
    "s": 46.789,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28589,
    "c": 0.09013,
    "h": 298.6
  },
  "luminance": 0.02111
}

Semantic roles & 50–950 ramp

primary
#311D50
secondary
#6B8544
accent
#D651A2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311D50

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

Preview Lab → · Contrast checker → · Palette generator →

#311D50 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva