#311A73#311A73

#311A73 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.142 H 286.9°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#311A73
RGBrgb(49, 26, 115)
HSLhsl(256, 63%, 28%)
HSVhsv(256, 77%, 45%)
CMYKcmyk(57.4%, 77.4%, 0%, 54.9%)
CIE-LABlab(18.49, 35.23, -47.10)
CIE-LCHlch(18.49, 58.82, 306.79°)
OKLaboklab(31.3% 0.0412 -0.1355)
OKLCHoklch(31.3% 0.142 286.9)
XYZxyz(4.7296, 2.6293, 16.4746)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A73 #5C731A
analogous
#1A2F73 #311A73 #5E1A73
triadic
#311A73 #73311A #1A7331
tetradic
#311A73 #731A2F #5C731A #1A735E
square
#311A73 #731A2F #5C731A #1A735E
split-complementary
#311A73 #735E1A #2F731A
monochromatic
#0B0619 #1C0F41 #311A73 #4625A5 #5E36D2

Accessibility & contrast

On white

13.76
#311A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#311A73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A73
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A73#FFFFFF#000000##FFFFFF
##311A731.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311a73;
/* rgb */ color: rgb(49, 26, 115);
/* oklch */ color: oklch(31.3% 0.142 286.9);
Tailwind
colors: {
  custom: {
    50: '#71599c',
    500: '#311a73',
    950: '#000000',
  },
}
SCSS
$custom: #311a73;
$custom-light: #71599c;
$custom-dark: #000000;
JSON
{
  "hex": "#311a73",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 115
  },
  "hsl": {
    "h": 255.506,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31301,
    "c": 0.14163,
    "h": 286.9
  },
  "luminance": 0.0263
}

Semantic roles & 50–950 ramp

primary
#311A73
secondary
#8DA841
accent
#E642BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311A73

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

Preview Lab → · Contrast checker → · Palette generator →

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