#311E7F#311E7F

#311E7F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.152 H 283.2°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#311E7F
RGBrgb(49, 30, 127)
HSLhsl(252, 62%, 31%)
HSVhsv(252, 76%, 50%)
CMYKcmyk(61.4%, 76.4%, 0%, 50.2%)
CIE-LABlab(20.49, 36.80, -51.49)
CIE-LCHlch(20.49, 63.29, 305.56°)
OKLaboklab(33.08% 0.0348 -0.1484)
OKLCHoklch(33.08% 0.152 283.2)
XYZxyz(5.5605, 3.1135, 20.3825)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E7F #6C7F1E
analogous
#1E3B7F #311E7F #611E7F
triadic
#311E7F #7F311E #1E7F31
tetradic
#311E7F #7F1E3B #6C7F1E #1E7F61
square
#311E7F #7F1E3B #6C7F1E #1E7F61
split-complementary
#311E7F #7F611E #3B7F1E
monochromatic
#0B071C #1E124D #311E7F #442AB1 #6044D3

Accessibility & contrast

On white

12.94
#311E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311E7F
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E7F#FFFFFF#000000##FFFFFF
##311E7F1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311e7f;
/* rgb */ color: rgb(49, 30, 127);
/* oklch */ color: oklch(33.1% 0.152 283.2);
Tailwind
colors: {
  custom: {
    50: '#735ca5',
    500: '#311e7f',
    950: '#000000',
  },
}
SCSS
$custom: #311e7f;
$custom-light: #735ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#311e7f",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 251.753,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33081,
    "c": 0.15242,
    "h": 283.2
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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