#311E7E#311E7E

#311E7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.151 H 283.4°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#311E7E
RGBrgb(49, 30, 126)
HSLhsl(252, 62%, 31%)
HSVhsv(252, 76%, 49%)
CMYKcmyk(61.1%, 76.2%, 0%, 50.6%)
CIE-LABlab(20.39, 36.49, -51.02)
CIE-LCHlch(20.39, 62.73, 305.57°)
OKLaboklab(32.98% 0.0351 -0.147)
OKLCHoklch(32.98% 0.151 283.4)
XYZxyz(5.4956, 3.0875, 20.0410)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E7E #6B7E1E
analogous
#1E3B7E #311E7E #611E7E
triadic
#311E7E #7E311E #1E7E31
tetradic
#311E7E #7E1E3B #6B7E1E #1E7E61
square
#311E7E #7E1E3B #6B7E1E #1E7E61
split-complementary
#311E7E #7E611E #3B7E1E
monochromatic
#0B061B #1E124D #311E7E #442AAF #6044D2

Accessibility & contrast

On white

12.98
#311E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#311E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E7E
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E7E#FFFFFF#000000##FFFFFF
##311E7E1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#01394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311e7e;
/* rgb */ color: rgb(49, 30, 126);
/* oklch */ color: oklch(33.0% 0.151 283.4);
Tailwind
colors: {
  custom: {
    50: '#735ca4',
    500: '#311e7e',
    950: '#000000',
  },
}
SCSS
$custom: #311e7e;
$custom-light: #735ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#311e7e",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 251.875,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32978,
    "c": 0.15114,
    "h": 283.4
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#311E7E
secondary
#9CB147
accent
#E543C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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