#311671#311671

#311671 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.143 H 288.3°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#311671
RGBrgb(49, 22, 113)
HSLhsl(258, 67%, 26%)
HSVhsv(258, 81%, 44%)
CMYKcmyk(56.6%, 80.5%, 0%, 55.7%)
CIE-LABlab(17.55, 36.73, -47.36)
CIE-LCHlch(17.55, 59.93, 307.79°)
OKLaboklab(30.58% 0.045 -0.1362)
OKLCHoklch(30.58% 0.143 288.3)
XYZxyz(4.5333, 2.4188, 15.8476)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311671 #567116
analogous
#162971 #311671 #5F1671
triadic
#311671 #713116 #167131
tetradic
#311671 #711629 #567116 #16715F
square
#311671 #711629 #567116 #16715F
split-complementary
#311671 #715F16 #297116
monochromatic
#0B051A #1B0C3E #311671 #4720A4 #5E2CD6

Accessibility & contrast

On white

14.15
#311671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311671
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311671#FFFFFF#000000##FFFFFF
##3116711.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#173043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311671;
/* rgb */ color: rgb(49, 22, 113);
/* oklch */ color: oklch(30.6% 0.143 288.3);
Tailwind
colors: {
  custom: {
    50: '#71579b',
    500: '#311671',
    950: '#000000',
  },
}
SCSS
$custom: #311671;
$custom-light: #71579b;
$custom-dark: #000000;
JSON
{
  "hex": "#311671",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 257.802,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30575,
    "c": 0.14349,
    "h": 288.3
  },
  "luminance": 0.02419
}

Semantic roles & 50–950 ramp

primary
#311671
secondary
#87A73C
accent
#EA3EB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311671

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

Preview Lab → · Contrast checker → · Palette generator →

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