#311B73#311B73

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

Color values

HEX#311B73
RGBrgb(49, 27, 115)
HSLhsl(255, 62%, 28%)
HSVhsv(255, 77%, 45%)
CMYKcmyk(57.4%, 76.5%, 0%, 54.9%)
CIE-LABlab(18.69, 34.67, -46.78)
CIE-LCHlch(18.69, 58.23, 306.55°)
OKLaboklab(31.44% 0.0403 -0.1346)
OKLCHoklch(31.44% 0.14 286.7)
XYZxyz(4.7521, 2.6744, 16.4821)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B73 #5D731B
analogous
#1B3173 #311B73 #5D1B73
triadic
#311B73 #73311B #1B7331
tetradic
#311B73 #731B31 #5D731B #1B735D
square
#311B73 #731B31 #5D731B #1B735D
split-complementary
#311B73 #735D1B #31731B
monochromatic
#0B0619 #1C0F41 #311B73 #4627A5 #5E38D0

Accessibility & contrast

On white

13.68
#311B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311B73
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B73#FFFFFF#000000##FFFFFF
##311B731.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#143345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311b73;
/* rgb */ color: rgb(49, 27, 115);
/* oklch */ color: oklch(31.4% 0.140 286.7);
Tailwind
colors: {
  custom: {
    50: '#715a9c',
    500: '#311b73',
    950: '#000000',
  },
}
SCSS
$custom: #311b73;
$custom-light: #715a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#311b73",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 255,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3144,
    "c": 0.14048,
    "h": 286.7
  },
  "luminance": 0.02675
}

Semantic roles & 50–950 ramp

primary
#311B73
secondary
#8EA842
accent
#E543BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311B73

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

Preview Lab → · Contrast checker → · Palette generator →

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