#311D67#311D67

#311D67 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.122 H 289.6°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#311D67
RGBrgb(49, 29, 103)
HSLhsl(256, 56%, 26%)
HSVhsv(256, 72%, 40%)
CMYKcmyk(52.4%, 71.8%, 0%, 59.6%)
CIE-LABlab(17.97, 29.70, -40.16)
CIE-LCHlch(17.97, 49.95, 306.49°)
OKLaboklab(30.57% 0.0409 -0.1152)
OKLCHoklch(30.57% 0.122 289.6)
XYZxyz(4.1535, 2.5108, 13.0951)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D67 #53671D
analogous
#1D2E67 #311D67 #561D67
triadic
#311D67 #67311D #1D6731
tetradic
#311D67 #671D2E #53671D #1D6756
square
#311D67 #671D2E #53671D #1D6756
split-complementary
#311D67 #67561D #2E671D
monochromatic
#0B0718 #1A1037 #311D67 #482A97 #5E38C7

Accessibility & contrast

On white

13.98
#311D67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#311D67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D67
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D67#FFFFFF#000000##FFFFFF
##311D671.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D69
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#1F303F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311d67;
/* rgb */ color: rgb(49, 29, 103);
/* oklch */ color: oklch(30.6% 0.122 289.6);
Tailwind
colors: {
  custom: {
    50: '#6f5a93',
    500: '#311d67',
    950: '#000000',
  },
}
SCSS
$custom: #311d67;
$custom-light: #6f5a93;
$custom-dark: #000000;
JSON
{
  "hex": "#311d67",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 103
  },
  "hsl": {
    "h": 256.216,
    "s": 56.061,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30574,
    "c": 0.12223,
    "h": 289.6
  },
  "luminance": 0.02511
}

Semantic roles & 50–950 ramp

primary
#311D67
secondary
#849C44
accent
#DF48B7
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #311D67

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

Preview Lab → · Contrast checker → · Palette generator →

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