#311071#311071

#311071 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.149 H 289.3°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#311071
RGBrgb(49, 16, 113)
HSLhsl(260, 75%, 25%)
HSVhsv(260, 86%, 44%)
CMYKcmyk(56.6%, 85.8%, 0%, 55.7%)
CIE-LABlab(16.58, 39.53, -48.96)
CIE-LCHlch(16.58, 62.92, 308.92°)
OKLaboklab(29.9% 0.0493 -0.1408)
OKLCHoklch(29.9% 0.149 289.3)
XYZxyz(4.4317, 2.2156, 15.8137)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311071 #507110
analogous
#102071 #311071 #611071
triadic
#311071 #713110 #107131
tetradic
#311071 #711020 #507110 #107161
square
#311071 #711020 #507110 #107161
split-complementary
#311071 #716110 #207110
monochromatic
#0C041B #1A083B #311071 #4818A7 #5F1FDC

Accessibility & contrast

On white

14.55
#311071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#311071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311071
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311071#FFFFFF#000000##FFFFFF
##3110711.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#172E42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311071;
/* rgb */ color: rgb(49, 16, 113);
/* oklch */ color: oklch(29.9% 0.149 289.3);
Tailwind
colors: {
  custom: {
    50: '#72549b',
    500: '#311071',
    950: '#000000',
  },
}
SCSS
$custom: #311071;
$custom-light: #72549b;
$custom-dark: #000000;
JSON
{
  "hex": "#311071",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 260.412,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29904,
    "c": 0.14923,
    "h": 289.3
  },
  "luminance": 0.02216
}

Semantic roles & 50–950 ramp

primary
#311071
secondary
#81A934
accent
#F236B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311071

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

Preview Lab → · Contrast checker → · Palette generator →

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