#311E4E#311E4E

#311E4E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.085 H 299.2°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#311E4E
RGBrgb(49, 30, 78)
HSLhsl(264, 44%, 21%)
HSVhsv(264, 62%, 31%)
CMYKcmyk(37.2%, 61.5%, 0%, 69.4%)
CIE-LABlab(16.16, 21.22, -26.36)
CIE-LCHlch(16.16, 33.84, 308.83°)
OKLaboklab(28.62% 0.0417 -0.0746)
OKLCHoklch(28.62% 0.085 299.2)
XYZxyz(3.1057, 2.1315, 7.4541)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E4E #3B4E1E
analogous
#1E234E #311E4E #491E4E
triadic
#311E4E #4E311E #1E4E31
tetradic
#311E4E #4E1E23 #3B4E1E #1E4E49
square
#311E4E #4E1E23 #3B4E1E #1E4E49
split-complementary
#311E4E #4E491E #234E1E
monochromatic
#0E0916 #150D22 #311E4E #4D2F7A #6940A6

Accessibility & contrast

On white

14.72
#311E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#311E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E4E
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E4E#FFFFFF#000000##FFFFFF
##311E4E1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092850
Deuteranopia (green-blind)
#10284D
Tritanopia (blue-blind)
#2B2832
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311e4e;
/* rgb */ color: rgb(49, 30, 78);
/* oklch */ color: oklch(28.6% 0.085 299.2);
Tailwind
colors: {
  custom: {
    50: '#6b5a80',
    500: '#311e4e',
    950: '#000000',
  },
}
SCSS
$custom: #311e4e;
$custom-light: #6b5a80;
$custom-dark: #000000;
JSON
{
  "hex": "#311e4e",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 263.75,
    "s": 44.444,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28618,
    "c": 0.08548,
    "h": 299.2
  },
  "luminance": 0.02132
}

Semantic roles & 50–950 ramp

primary
#311E4E
secondary
#6A8345
accent
#D454A1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #311E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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