#311670#311670

#311670 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.142 H 288.6°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#311670
RGBrgb(49, 22, 112)
HSLhsl(258, 67%, 26%)
HSVhsv(258, 80%, 44%)
CMYKcmyk(56.3%, 80.4%, 0%, 56.1%)
CIE-LABlab(17.44, 36.42, -46.89)
CIE-LCHlch(17.44, 59.37, 307.84°)
OKLaboklab(30.47% 0.0453 -0.1348)
OKLCHoklch(30.47% 0.142 288.6)
XYZxyz(4.4773, 2.3964, 15.5527)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311670 #557016
analogous
#162870 #311670 #5E1670
triadic
#311670 #703116 #167031
tetradic
#311670 #701628 #557016 #16705E
square
#311670 #701628 #557016 #16705E
split-complementary
#311670 #705E16 #287016
monochromatic
#0B051A #1B0C3D #311670 #4720A3 #5E2BD5

Accessibility & contrast

On white

14.19
#311670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#311670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311670
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311670#FFFFFF#000000##FFFFFF
##3116701.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#182F42
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311670;
/* rgb */ color: rgb(49, 22, 112);
/* oklch */ color: oklch(30.5% 0.142 288.6);
Tailwind
colors: {
  custom: {
    50: '#71579a',
    500: '#311670',
    950: '#000000',
  },
}
SCSS
$custom: #311670;
$custom-light: #71579a;
$custom-dark: #000000;
JSON
{
  "hex": "#311670",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 258,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30471,
    "c": 0.14226,
    "h": 288.6
  },
  "luminance": 0.02397
}

Semantic roles & 50–950 ramp

primary
#311670
secondary
#86A63C
accent
#EA3EB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311670

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

Preview Lab → · Contrast checker → · Palette generator →

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