#311F73#311F73

#311F73 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.0% C 0.136 H 285.7°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#311F73
RGBrgb(49, 31, 115)
HSLhsl(253, 58%, 29%)
HSVhsv(253, 73%, 45%)
CMYKcmyk(57.4%, 73%, 0%, 54.9%)
CIE-LABlab(19.52, 32.36, -45.42)
CIE-LCHlch(19.52, 55.77, 305.47°)
OKLaboklab(32.03% 0.0367 -0.1306)
OKLCHoklch(32.03% 0.136 285.7)
XYZxyz(4.8502, 2.8705, 16.5148)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F73 #61731F
analogous
#1F3773 #311F73 #5B1F73
triadic
#311F73 #73311F #1F7331
tetradic
#311F73 #731F37 #61731F #1F735B
square
#311F73 #731F37 #61731F #1F735B
split-complementary
#311F73 #735B1F #37731F
monochromatic
#0A0618 #1C1243 #311F73 #462CA3 #5E41CC

Accessibility & contrast

On white

13.34
#311F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#311F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F73
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F73#FFFFFF#000000##FFFFFF
##311F731.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#143546
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #311f73;
/* rgb */ color: rgb(49, 31, 115);
/* oklch */ color: oklch(32.0% 0.136 285.7);
Tailwind
colors: {
  custom: {
    50: '#715c9c',
    500: '#311f73',
    950: '#000000',
  },
}
SCSS
$custom: #311f73;
$custom-light: #715c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#311f73",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 252.857,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32028,
    "c": 0.13568,
    "h": 285.7
  },
  "luminance": 0.02871
}

Semantic roles & 50–950 ramp

primary
#311F73
secondary
#92A747
accent
#E147C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311F73

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

Preview Lab → · Contrast checker → · Palette generator →

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