#311373#311373

#311373 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.149 H 288.2°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#311373
RGBrgb(49, 19, 115)
HSLhsl(259, 72%, 26%)
HSVhsv(259, 83%, 45%)
CMYKcmyk(57.4%, 83.5%, 0%, 54.9%)
CIE-LABlab(17.26, 38.78, -49.14)
CIE-LCHlch(17.26, 62.59, 308.28°)
OKLaboklab(30.44% 0.0466 -0.1414)
OKLCHoklch(30.44% 0.149 288.2)
XYZxyz(4.5931, 2.3563, 16.4291)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311373 #557313
analogous
#132573 #311373 #611373
triadic
#311373 #733113 #137331
tetradic
#311373 #731325 #557313 #137361
square
#311373 #731325 #557313 #137361
split-complementary
#311373 #736113 #257313
monochromatic
#0B041A #1B0A3E #311373 #471CA8 #5E25DB

Accessibility & contrast

On white

14.27
#311373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#311373 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311373
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311373#FFFFFF#000000##FFFFFF
##3113731.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#152F43
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311373;
/* rgb */ color: rgb(49, 19, 115);
/* oklch */ color: oklch(30.4% 0.149 288.2);
Tailwind
colors: {
  custom: {
    50: '#72559c',
    500: '#311373',
    950: '#000000',
  },
}
SCSS
$custom: #311373;
$custom-light: #72559c;
$custom-dark: #000000;
JSON
{
  "hex": "#311373",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 115
  },
  "hsl": {
    "h": 258.75,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30436,
    "c": 0.14888,
    "h": 288.2
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#311373
secondary
#86AA38
accent
#EE39B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311373

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

Preview Lab → · Contrast checker → · Palette generator →

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