#311D69#311D69

#311D69 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.8% C 0.125 H 289.0°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#311D69
RGBrgb(49, 29, 105)
HSLhsl(256, 57%, 26%)
HSVhsv(256, 72%, 41%)
CMYKcmyk(53.3%, 72.4%, 0%, 58.8%)
CIE-LABlab(18.15, 30.34, -41.17)
CIE-LCHlch(18.15, 51.14, 306.39°)
OKLaboklab(30.76% 0.0406 -0.1181)
OKLCHoklch(30.76% 0.125 289)
XYZxyz(4.2551, 2.5514, 13.6301)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D69 #55691D
analogous
#1D2F69 #311D69 #571D69
triadic
#311D69 #69311D #1D6931
tetradic
#311D69 #691D2F #55691D #1D6957
square
#311D69 #691D2F #55691D #1D6957
split-complementary
#311D69 #69571D #2F691D
monochromatic
#0B0718 #1B1039 #311D69 #472A99 #5E38C8

Accessibility & contrast

On white

13.90
#311D69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#311D69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D69
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D69#FFFFFF#000000##FFFFFF
##311D691.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6B
Deuteranopia (green-blind)
#002A68
Tritanopia (blue-blind)
#1D3040
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311d69;
/* rgb */ color: rgb(49, 29, 105);
/* oklch */ color: oklch(30.8% 0.125 289.0);
Tailwind
colors: {
  custom: {
    50: '#6f5b95',
    500: '#311d69',
    950: '#000000',
  },
}
SCSS
$custom: #311d69;
$custom-light: #6f5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#311d69",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 105
  },
  "hsl": {
    "h": 255.789,
    "s": 56.716,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30761,
    "c": 0.12492,
    "h": 289
  },
  "luminance": 0.02552
}

Semantic roles & 50–950 ramp

primary
#311D69
secondary
#869E44
accent
#E048B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #311D69

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

Preview Lab → · Contrast checker → · Palette generator →

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