#311E7D#311E7D

#311E7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.150 H 283.6°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#311E7D
RGBrgb(49, 30, 125)
HSLhsl(252, 61%, 30%)
HSVhsv(252, 76%, 49%)
CMYKcmyk(60.8%, 76%, 0%, 51%)
CIE-LABlab(20.29, 36.17, -50.55)
CIE-LCHlch(20.29, 62.16, 305.58°)
OKLaboklab(32.88% 0.0353 -0.1456)
OKLCHoklch(32.88% 0.15 283.6)
XYZxyz(5.4314, 3.0618, 19.7028)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E7D #6A7D1E
analogous
#1E3A7D #311E7D #601E7D
triadic
#311E7D #7D311E #1E7D31
tetradic
#311E7D #7D1E3A #6A7D1E #1E7D60
square
#311E7D #7D1E3A #6A7D1E #1E7D60
split-complementary
#311E7D #7D601E #3A7D1E
monochromatic
#0A061A #1E124C #311E7D #442AAE #6043D2

Accessibility & contrast

On white

13.02
#311E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#311E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E7D
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E7D#FFFFFF#000000##FFFFFF
##311E7D1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#03384C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311e7d;
/* rgb */ color: rgb(49, 30, 125);
/* oklch */ color: oklch(32.9% 0.150 283.6);
Tailwind
colors: {
  custom: {
    50: '#735ca4',
    500: '#311e7d',
    950: '#000000',
  },
}
SCSS
$custom: #311e7d;
$custom-light: #735ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#311e7d",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 252,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32876,
    "c": 0.14987,
    "h": 283.6
  },
  "luminance": 0.03062
}

Semantic roles & 50–950 ramp

primary
#311E7D
secondary
#9BB046
accent
#E443C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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