#311371#311371

#311371 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.146 H 288.8°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#311371
RGBrgb(49, 19, 113)
HSLhsl(259, 71%, 26%)
HSVhsv(259, 83%, 44%)
CMYKcmyk(56.6%, 83.2%, 0%, 55.7%)
CIE-LABlab(17.04, 38.19, -48.20)
CIE-LCHlch(17.04, 61.49, 308.39°)
OKLaboklab(30.22% 0.0473 -0.1387)
OKLCHoklch(30.22% 0.146 288.8)
XYZxyz(4.4793, 2.3107, 15.8296)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311371 #537113
analogous
#132471 #311371 #601371
triadic
#311371 #713113 #137131
tetradic
#311371 #711324 #537113 #137160
square
#311371 #711324 #537113 #137160
split-complementary
#311371 #716013 #247113
monochromatic
#0B041A #1A0A3D #311371 #481CA5 #5E25DA

Accessibility & contrast

On white

14.36
#311371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#311371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311371
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311371#FFFFFF#000000##FFFFFF
##3113711.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#172F42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311371;
/* rgb */ color: rgb(49, 19, 113);
/* oklch */ color: oklch(30.2% 0.146 288.8);
Tailwind
colors: {
  custom: {
    50: '#72559b',
    500: '#311371',
    950: '#000000',
  },
}
SCSS
$custom: #311371;
$custom-light: #72559b;
$custom-dark: #000000;
JSON
{
  "hex": "#311371",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 259.149,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30222,
    "c": 0.14649,
    "h": 288.8
  },
  "luminance": 0.02311
}

Semantic roles & 50–950 ramp

primary
#311371
secondary
#84A838
accent
#EE3AB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311371

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

Preview Lab → · Contrast checker → · Palette generator →

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