#311A72#311A72

#311A72 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.140 H 287.2°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#311A72
RGBrgb(49, 26, 114)
HSLhsl(256, 63%, 27%)
HSVhsv(256, 77%, 45%)
CMYKcmyk(57%, 77.2%, 0%, 55.3%)
CIE-LABlab(18.39, 34.92, -46.62)
CIE-LCHlch(18.39, 58.25, 306.83°)
OKLaboklab(31.2% 0.0414 -0.1341)
OKLCHoklch(31.2% 0.14 287.2)
XYZxyz(4.6724, 2.6064, 16.1732)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A72 #5B721A
analogous
#1A2F72 #311A72 #5D1A72
triadic
#311A72 #72311A #1A7231
tetradic
#311A72 #721A2F #5B721A #1A725D
square
#311A72 #721A2F #5B721A #1A725D
split-complementary
#311A72 #725D1A #2F721A
monochromatic
#0B0619 #1C0F40 #311A72 #4625A4 #5E35D1

Accessibility & contrast

On white

13.80
#311A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#311A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A72
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A72#FFFFFF#000000##FFFFFF
##311A721.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#153244
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311a72;
/* rgb */ color: rgb(49, 26, 114);
/* oklch */ color: oklch(31.2% 0.140 287.2);
Tailwind
colors: {
  custom: {
    50: '#71599b',
    500: '#311a72',
    950: '#000000',
  },
}
SCSS
$custom: #311a72;
$custom-light: #71599b;
$custom-dark: #000000;
JSON
{
  "hex": "#311a72",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 255.682,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.312,
    "c": 0.14036,
    "h": 287.2
  },
  "luminance": 0.02607
}

Semantic roles & 50–950 ramp

primary
#311A72
secondary
#8CA741
accent
#E642BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311A72

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

Preview Lab → · Contrast checker → · Palette generator →

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