#311685#311685

#311685 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.168 H 283.2°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#311685
RGBrgb(49, 22, 133)
HSLhsl(255, 72%, 30%)
HSVhsv(255, 83%, 52%)
CMYKcmyk(63.2%, 83.5%, 0%, 47.8%)
CIE-LABlab(19.72, 42.72, -56.56)
CIE-LCHlch(19.72, 70.88, 307.07°)
OKLaboklab(32.73% 0.0384 -0.1631)
OKLCHoklch(32.73% 0.168 283.2)
XYZxyz(5.7859, 2.9198, 22.4444)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311685 #6A8516
analogous
#163285 #311685 #691685
triadic
#311685 #853116 #168531
tetradic
#311685 #851632 #6A8516 #168569
square
#311685 #851632 #6A8516 #168569
split-complementary
#311685 #856916 #328516
monochromatic
#0A051C #1E0D50 #311685 #441FBA #6037DE

Accessibility & contrast

On white

13.26
#311685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#311685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311685
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311685#FFFFFF#000000##FFFFFF
##3116851.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311685;
/* rgb */ color: rgb(49, 22, 133);
/* oklch */ color: oklch(32.7% 0.168 283.2);
Tailwind
colors: {
  custom: {
    50: '#7558aa',
    500: '#311685',
    950: '#000000',
  },
}
SCSS
$custom: #311685;
$custom-light: #7558aa;
$custom-dark: #000000;
JSON
{
  "hex": "#311685",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 254.595,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32734,
    "c": 0.16755,
    "h": 283.2
  },
  "luminance": 0.0292
}

Semantic roles & 50–950 ramp

primary
#311685
secondary
#9BB93E
accent
#EE39C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311685

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

Preview Lab → · Contrast checker → · Palette generator →

#311685 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva