#311470#311470

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

Color values

HEX#311470
RGBrgb(49, 20, 112)
HSLhsl(259, 70%, 26%)
HSVhsv(259, 82%, 44%)
CMYKcmyk(56.3%, 82.1%, 0%, 56.1%)
CIE-LABlab(17.10, 37.42, -47.45)
CIE-LCHlch(17.10, 60.43, 308.26°)
OKLaboklab(30.23% 0.0469 -0.1365)
OKLCHoklch(30.23% 0.144 289)
XYZxyz(4.4406, 2.3229, 15.5405)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311470 #537014
analogous
#142570 #311470 #5F1470
triadic
#311470 #703114 #147031
tetradic
#311470 #701425 #537014 #14705F
square
#311470 #701425 #537014 #14705F
split-complementary
#311470 #705F14 #257014
monochromatic
#0B051A #1A0B3C #311470 #481DA4 #5E27D8

Accessibility & contrast

On white

14.34
#311470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311470
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311470#FFFFFF#000000##FFFFFF
##3114701.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311470;
/* rgb */ color: rgb(49, 20, 112);
/* oklch */ color: oklch(30.2% 0.144 289.0);
Tailwind
colors: {
  custom: {
    50: '#71569a',
    500: '#311470',
    950: '#000000',
  },
}
SCSS
$custom: #311470;
$custom-light: #71569a;
$custom-dark: #000000;
JSON
{
  "hex": "#311470",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 112
  },
  "hsl": {
    "h": 258.913,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3023,
    "c": 0.14432,
    "h": 289
  },
  "luminance": 0.02323
}

Semantic roles & 50–950 ramp

primary
#311470
secondary
#84A639
accent
#ED3BB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311470

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

Preview Lab → · Contrast checker → · Palette generator →

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