#311A9F#311A9F

#311A9F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.195 H 278.2°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#311A9F
RGBrgb(49, 26, 159)
HSLhsl(250, 72%, 36%)
HSVhsv(250, 84%, 62%)
CMYKcmyk(69.2%, 83.6%, 0%, 37.6%)
CIE-LABlab(23.32, 48.65, -66.73)
CIE-LCHlch(23.32, 82.58, 306.10°)
OKLaboklab(36.09% 0.0277 -0.1927)
OKLCHoklch(36.09% 0.195 278.2)
XYZxyz(7.8920, 3.8943, 33.1299)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A9F #889F1A
analogous
#1A469F #311A9F #741A9F
triadic
#311A9F #9F311A #1A9F31
tetradic
#311A9F #9F1A46 #889F1A #1A9F74
square
#311A9F #9F1A46 #889F1A #1A9F74
split-complementary
#311A9F #9F741A #469F1A
monochromatic
#110936 #21116A #311A9F #4123D4 #6A51E3

Accessibility & contrast

On white

11.80
#311A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#311A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A9F
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A9F#FFFFFF#000000##FFFFFF
##311A9F1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #311a9f;
/* rgb */ color: rgb(49, 26, 159);
/* oklch */ color: oklch(36.1% 0.195 278.2);
Tailwind
colors: {
  custom: {
    50: '#7b5cbd',
    500: '#311a9f',
    950: '#000000',
  },
}
SCSS
$custom: #311a9f;
$custom-light: #7b5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#311a9f",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 250.376,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36092,
    "c": 0.19472,
    "h": 278.2
  },
  "luminance": 0.03895
}

Semantic roles & 50–950 ramp

primary
#311A9F
secondary
#B1C550
accent
#EF39CF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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