#311C72#311C72

#311C72 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.138 H 286.7°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#311C72
RGBrgb(49, 28, 114)
HSLhsl(255, 61%, 28%)
HSVhsv(255, 75%, 45%)
CMYKcmyk(57%, 75.4%, 0%, 55.3%)
CIE-LABlab(18.79, 33.79, -45.97)
CIE-LCHlch(18.79, 57.05, 306.32°)
OKLaboklab(31.48% 0.0397 -0.1322)
OKLCHoklch(31.48% 0.138 286.7)
XYZxyz(4.7182, 2.6981, 16.1885)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C72 #5D721C
analogous
#1C3272 #311C72 #5C1C72
triadic
#311C72 #72311C #1C7231
tetradic
#311C72 #721C32 #5D721C #1C725C
square
#311C72 #721C32 #5D721C #1C725C
split-complementary
#311C72 #725C1C #32721C
monochromatic
#0B0619 #1C1041 #311C72 #4628A3 #5E3ACF

Accessibility & contrast

On white

13.64
#311C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#311C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C72
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C72#FFFFFF#000000##FFFFFF
##311C721.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#153345
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311c72;
/* rgb */ color: rgb(49, 28, 114);
/* oklch */ color: oklch(31.5% 0.138 286.7);
Tailwind
colors: {
  custom: {
    50: '#715a9b',
    500: '#311c72',
    950: '#000000',
  },
}
SCSS
$custom: #311c72;
$custom-light: #715a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#311c72",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 254.651,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31482,
    "c": 0.13803,
    "h": 286.7
  },
  "luminance": 0.02698
}

Semantic roles & 50–950 ramp

primary
#311C72
secondary
#8EA643
accent
#E444BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311C72

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

Preview Lab → · Contrast checker → · Palette generator →

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