#311D4E#311D4E

#311D4E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.087 H 299.7°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#311D4E
RGBrgb(49, 29, 78)
HSLhsl(264, 46%, 21%)
HSVhsv(264, 63%, 31%)
CMYKcmyk(37.2%, 62.8%, 0%, 69.4%)
CIE-LABlab(15.91, 21.88, -26.77)
CIE-LCHlch(15.91, 34.57, 309.26°)
OKLaboklab(28.43% 0.0432 -0.0758)
OKLCHoklch(28.43% 0.087 299.7)
XYZxyz(3.0808, 2.0817, 7.4458)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D4E #3A4E1D
analogous
#1D214E #311D4E #491D4E
triadic
#311D4E #4E311D #1D4E31
tetradic
#311D4E #4E1D21 #3A4E1D #1D4E49
square
#311D4E #4E1D21 #3A4E1D #1D4E49
split-complementary
#311D4E #4E491D #214E1D
monochromatic
#0E0816 #150C21 #311D4E #4D2E7B #693EA7

Accessibility & contrast

On white

14.83
#311D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311D4E
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D4E#FFFFFF#000000##FFFFFF
##311D4E1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072750
Deuteranopia (green-blind)
#0E274D
Tritanopia (blue-blind)
#2B2732
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311d4e;
/* rgb */ color: rgb(49, 29, 78);
/* oklch */ color: oklch(28.4% 0.087 299.7);
Tailwind
colors: {
  custom: {
    50: '#6b5a80',
    500: '#311d4e',
    950: '#000000',
  },
}
SCSS
$custom: #311d4e;
$custom-light: #6b5a80;
$custom-dark: #000000;
JSON
{
  "hex": "#311d4e",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 264.49,
    "s": 45.794,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28433,
    "c": 0.08725,
    "h": 299.7
  },
  "luminance": 0.02082
}

Semantic roles & 50–950 ramp

primary
#311D4E
secondary
#698344
accent
#D552A0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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