#311F4E#311F4E

#311F4E is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.8% C 0.084 H 298.7°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#311F4E
RGBrgb(49, 31, 78)
HSLhsl(263, 43%, 21%)
HSVhsv(263, 60%, 31%)
CMYKcmyk(37.2%, 60.3%, 0%, 69.4%)
CIE-LABlab(16.42, 20.55, -25.95)
CIE-LCHlch(16.42, 33.10, 308.37°)
OKLaboklab(28.81% 0.0402 -0.0734)
OKLCHoklch(28.81% 0.084 298.7)
XYZxyz(3.1314, 2.1830, 7.4626)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F4E #3C4E1F
analogous
#1F254E #311F4E #491F4E
triadic
#311F4E #4E311F #1F4E31
tetradic
#311F4E #4E1F25 #3C4E1F #1F4E49
square
#311F4E #4E1F25 #3C4E1F #1F4E49
split-complementary
#311F4E #4E491F #254E1F
monochromatic
#0E0916 #150E22 #311F4E #4D307A #6842A6

Accessibility & contrast

On white

14.62
#311F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#311F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F4E
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F4E#FFFFFF#000000##FFFFFF
##311F4E1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2950
Deuteranopia (green-blind)
#11284D
Tritanopia (blue-blind)
#2B2833
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311f4e;
/* rgb */ color: rgb(49, 31, 78);
/* oklch */ color: oklch(28.8% 0.084 298.7);
Tailwind
colors: {
  custom: {
    50: '#6b5b80',
    500: '#311f4e',
    950: '#000000',
  },
}
SCSS
$custom: #311f4e;
$custom-light: #6b5b80;
$custom-dark: #000000;
JSON
{
  "hex": "#311f4e",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 262.979,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28808,
    "c": 0.08371,
    "h": 298.7
  },
  "luminance": 0.02183
}

Semantic roles & 50–950 ramp

primary
#311F4E
secondary
#6B8346
accent
#D355A3
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #311F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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