#311570#311570

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

Color values

HEX#311570
RGBrgb(49, 21, 112)
HSLhsl(258, 68%, 26%)
HSVhsv(258, 81%, 44%)
CMYKcmyk(56.3%, 81.2%, 0%, 56.1%)
CIE-LABlab(17.27, 36.93, -47.17)
CIE-LCHlch(17.27, 59.91, 308.05°)
OKLaboklab(30.35% 0.0461 -0.1357)
OKLCHoklch(30.35% 0.143 288.8)
XYZxyz(4.4586, 2.3589, 15.5465)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311570 #547015
analogous
#152670 #311570 #5E1570
triadic
#311570 #703115 #157031
tetradic
#311570 #701526 #547015 #15705E
square
#311570 #701526 #547015 #15705E
split-complementary
#311570 #705E15 #267015
monochromatic
#0B051A #1A0B3C #311570 #481FA4 #5E29D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##311570#FFFFFF#000000##FFFFFF
##3115701.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)
#002C73
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#182F42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311570;
/* rgb */ color: rgb(49, 21, 112);
/* oklch */ color: oklch(30.3% 0.143 288.8);
Tailwind
colors: {
  custom: {
    50: '#71569a',
    500: '#311570',
    950: '#000000',
  },
}
SCSS
$custom: #311570;
$custom-light: #71569a;
$custom-dark: #000000;
JSON
{
  "hex": "#311570",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 258.462,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30348,
    "c": 0.14331,
    "h": 288.8
  },
  "luminance": 0.02359
}

Semantic roles & 50–950 ramp

primary
#311570
secondary
#85A63B
accent
#EB3DB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311570

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

Preview Lab → · Contrast checker → · Palette generator →

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