#311A85#311A85

#311A85 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.164 H 282.7°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#311A85
RGBrgb(49, 26, 133)
HSLhsl(253, 67%, 31%)
HSVhsv(253, 80%, 52%)
CMYKcmyk(63.2%, 80.5%, 0%, 47.8%)
CIE-LABlab(20.38, 40.81, -55.47)
CIE-LCHlch(20.38, 68.86, 306.34°)
OKLaboklab(33.19% 0.036 -0.16)
OKLCHoklch(33.19% 0.164 282.7)
XYZxyz(5.8683, 3.0848, 22.4719)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A85 #6E851A
analogous
#1A3885 #311A85 #661A85
triadic
#311A85 #85311A #1A8531
tetradic
#311A85 #851A38 #6E851A #1A8566
square
#311A85 #851A38 #6E851A #1A8566
split-complementary
#311A85 #85661A #38851A
monochromatic
#0B061F #1E1052 #311A85 #4424B8 #6140DA

Accessibility & contrast

On white

12.99
#311A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311A85
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A85#FFFFFF#000000##FFFFFF
##311A851.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311a85;
/* rgb */ color: rgb(49, 26, 133);
/* oklch */ color: oklch(33.2% 0.164 282.7);
Tailwind
colors: {
  custom: {
    50: '#755aaa',
    500: '#311a85',
    950: '#000000',
  },
}
SCSS
$custom: #311a85;
$custom-light: #755aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#311a85",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 252.897,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33192,
    "c": 0.16396,
    "h": 282.7
  },
  "luminance": 0.03085
}

Semantic roles & 50–950 ramp

primary
#311A85
secondary
#9FB842
accent
#EA3EC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311A85

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

Preview Lab → · Contrast checker → · Palette generator →

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