#311D80#311D80

#311D80 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.155 H 283.2°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#311D80
RGBrgb(49, 29, 128)
HSLhsl(252, 63%, 31%)
HSVhsv(252, 77%, 50%)
CMYKcmyk(61.7%, 77.3%, 0%, 49.8%)
CIE-LABlab(20.40, 37.68, -52.28)
CIE-LCHlch(20.40, 64.44, 305.78°)
OKLaboklab(33.05% 0.0353 -0.1507)
OKLCHoklch(33.05% 0.155 283.2)
XYZxyz(5.6011, 3.0898, 20.7191)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D80 #6C801D
analogous
#1D3A80 #311D80 #621D80
triadic
#311D80 #80311D #1D8031
tetradic
#311D80 #801D3A #6C801D #1D8062
square
#311D80 #801D3A #6C801D #1D8062
split-complementary
#311D80 #80621D #3A801D
monochromatic
#0B061C #1E124E #311D80 #4428B2 #6043D4

Accessibility & contrast

On white

12.98
#311D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#311D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D80
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D80#FFFFFF#000000##FFFFFF
##311D801.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311d80;
/* rgb */ color: rgb(49, 29, 128);
/* oklch */ color: oklch(33.0% 0.155 283.2);
Tailwind
colors: {
  custom: {
    50: '#745ca6',
    500: '#311d80',
    950: '#000000',
  },
}
SCSS
$custom: #311d80;
$custom-light: #745ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#311d80",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 252.121,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33046,
    "c": 0.15476,
    "h": 283.2
  },
  "luminance": 0.0309
}

Semantic roles & 50–950 ramp

primary
#311D80
secondary
#9DB345
accent
#E642C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311D80

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

Preview Lab → · Contrast checker → · Palette generator →

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