#311F75#311F75

#311F75 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.138 H 285.2°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#311F75
RGBrgb(49, 31, 117)
HSLhsl(253, 58%, 29%)
HSVhsv(253, 74%, 46%)
CMYKcmyk(58.1%, 73.5%, 0%, 54.1%)
CIE-LABlab(19.71, 33.01, -46.40)
CIE-LCHlch(19.71, 56.94, 305.43°)
OKLaboklab(32.22% 0.0363 -0.1335)
OKLCHoklch(32.22% 0.138 285.2)
XYZxyz(4.9665, 2.9170, 17.1275)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F75 #63751F
analogous
#1F3875 #311F75 #5C1F75
triadic
#311F75 #75311F #1F7531
tetradic
#311F75 #751F38 #63751F #1F755C
square
#311F75 #751F38 #63751F #1F755C
split-complementary
#311F75 #755C1F #38751F
monochromatic
#0A0618 #1D1245 #311F75 #452CA5 #5F42CD

Accessibility & contrast

On white

13.26
#311F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#311F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F75
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F75#FFFFFF#000000##FFFFFF
##311F751.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#113647
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311f75;
/* rgb */ color: rgb(49, 31, 117);
/* oklch */ color: oklch(32.2% 0.138 285.2);
Tailwind
colors: {
  custom: {
    50: '#715c9e',
    500: '#311f75',
    950: '#000000',
  },
}
SCSS
$custom: #311f75;
$custom-light: #715c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#311f75",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 252.558,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32223,
    "c": 0.13832,
    "h": 285.2
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#311F75
secondary
#94A947
accent
#E146C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311F75

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

Preview Lab → · Contrast checker → · Palette generator →

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