#311751#311751

#311751 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.101 H 300.5°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#311751
RGBrgb(49, 23, 81)
HSLhsl(267, 56%, 20%)
HSVhsv(267, 72%, 32%)
CMYKcmyk(39.5%, 71.6%, 0%, 68.2%)
CIE-LABlab(14.73, 26.55, -30.71)
CIE-LCHlch(14.73, 40.60, 310.85°)
OKLaboklab(27.65% 0.0514 -0.0874)
OKLCHoklch(27.65% 0.101 300.5)
XYZxyz(3.0579, 1.8598, 7.9809)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311751 #375117
analogous
#171A51 #311751 #4E1751
triadic
#311751 #513117 #175131
tetradic
#311751 #51171A #375117 #17514E
square
#311751 #51171A #375117 #17514E
split-complementary
#311751 #514E17 #1A5117
monochromatic
#0E0718 #140921 #311751 #4E2581 #6B32B0

Accessibility & contrast

On white

15.31
#311751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#311751 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311751
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311751#FFFFFF#000000##FFFFFF
##3117511.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002553
Deuteranopia (green-blind)
#002550
Tritanopia (blue-blind)
#2A2431
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311751;
/* rgb */ color: rgb(49, 23, 81);
/* oklch */ color: oklch(27.7% 0.101 300.5);
Tailwind
colors: {
  custom: {
    50: '#6c5682',
    500: '#311751',
    950: '#000000',
  },
}
SCSS
$custom: #311751;
$custom-light: #6c5682;
$custom-dark: #000000;
JSON
{
  "hex": "#311751",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 81
  },
  "hsl": {
    "h": 266.897,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27651,
    "c": 0.10137,
    "h": 300.5
  },
  "luminance": 0.0186
}

Semantic roles & 50–950 ramp

primary
#311751
secondary
#66883C
accent
#DF499C
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311751

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

Preview Lab → · Contrast checker → · Palette generator →

#311751 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva