#311A9B#311A9B

#311A9B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.190 H 278.8°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#311A9B
RGBrgb(49, 26, 155)
HSLhsl(251, 71%, 35%)
HSVhsv(251, 83%, 61%)
CMYKcmyk(68.4%, 83.2%, 0%, 39.2%)
CIE-LABlab(22.85, 47.47, -65.05)
CIE-LCHlch(22.85, 80.53, 306.12°)
OKLaboklab(35.64% 0.029 -0.1879)
OKLCHoklch(35.64% 0.19 278.8)
XYZxyz(7.5505, 3.7577, 31.3314)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A9B #849B1A
analogous
#1A439B #311A9B #721A9B
triadic
#311A9B #9B311A #1A9B31
tetradic
#311A9B #9B1A43 #849B1A #1A9B72
square
#311A9B #9B1A43 #849B1A #1A9B72
split-complementary
#311A9B #9B721A #439B1A
monochromatic
#100832 #201167 #311A9B #4223CF #684EE1

Accessibility & contrast

On white

11.99
#311A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#311A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A9B
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A9B#FFFFFF#000000##FFFFFF
##311A9B1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #311a9b;
/* rgb */ color: rgb(49, 26, 155);
/* oklch */ color: oklch(35.6% 0.190 278.8);
Tailwind
colors: {
  custom: {
    50: '#7a5cba',
    500: '#311a9b',
    950: '#000000',
  },
}
SCSS
$custom: #311a9b;
$custom-light: #7a5cba;
$custom-dark: #000000;
JSON
{
  "hex": "#311a9b",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 250.698,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35635,
    "c": 0.19009,
    "h": 278.8
  },
  "luminance": 0.03758
}

Semantic roles & 50–950 ramp

primary
#311A9B
secondary
#AEC44D
accent
#EE3ACE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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