#311D4F#311D4F

#311D4F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.089 H 299.1°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#311D4F
RGBrgb(49, 29, 79)
HSLhsl(264, 46%, 21%)
HSVhsv(264, 63%, 31%)
CMYKcmyk(38%, 63.3%, 0%, 69%)
CIE-LABlab(15.98, 22.18, -27.33)
CIE-LCHlch(15.98, 35.20, 309.06°)
OKLaboklab(28.51% 0.0432 -0.0775)
OKLCHoklch(28.51% 0.089 299.1)
XYZxyz(3.1169, 2.0962, 7.6360)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D4F #3B4F1D
analogous
#1D224F #311D4F #4A1D4F
triadic
#311D4F #4F311D #1D4F31
tetradic
#311D4F #4F1D22 #3B4F1D #1D4F4A
square
#311D4F #4F1D22 #3B4F1D #1D4F4A
split-complementary
#311D4F #4F4A1D #224F1D
monochromatic
#0E0816 #150D22 #311D4F #4D2D7C #693EA9

Accessibility & contrast

On white

14.80
#311D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311D4F
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D4F#FFFFFF#000000##FFFFFF
##311D4F1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052851
Deuteranopia (green-blind)
#0D274E
Tritanopia (blue-blind)
#2A2732
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311d4f;
/* rgb */ color: rgb(49, 29, 79);
/* oklch */ color: oklch(28.5% 0.089 299.1);
Tailwind
colors: {
  custom: {
    50: '#6b5a81',
    500: '#311d4f',
    950: '#000000',
  },
}
SCSS
$custom: #311d4f;
$custom-light: #6b5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#311d4f",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 79
  },
  "hsl": {
    "h": 264,
    "s": 46.296,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2851,
    "c": 0.0887,
    "h": 299.1
  },
  "luminance": 0.02096
}

Semantic roles & 50–950 ramp

primary
#311D4F
secondary
#6A8444
accent
#D652A1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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