#311573#311573

#311573 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.147 H 287.9°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#311573
RGBrgb(49, 21, 115)
HSLhsl(258, 69%, 27%)
HSVhsv(258, 82%, 45%)
CMYKcmyk(57.4%, 81.7%, 0%, 54.9%)
CIE-LABlab(17.58, 37.82, -48.60)
CIE-LCHlch(17.58, 61.58, 307.90°)
OKLaboklab(30.66% 0.0451 -0.1398)
OKLCHoklch(30.66% 0.147 287.9)
XYZxyz(4.6284, 2.4269, 16.4409)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311573 #577315
analogous
#152873 #311573 #601573
triadic
#311573 #733115 #157331
tetradic
#311573 #731528 #577315 #157360
square
#311573 #731528 #577315 #157360
split-complementary
#311573 #736015 #287315
monochromatic
#0B051A #1B0C3F #311573 #471EA7 #5E2AD8

Accessibility & contrast

On white

14.14
#311573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#311573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311573
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311573#FFFFFF#000000##FFFFFF
##3115731.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#153044
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311573;
/* rgb */ color: rgb(49, 21, 115);
/* oklch */ color: oklch(30.7% 0.147 287.9);
Tailwind
colors: {
  custom: {
    50: '#72569c',
    500: '#311573',
    950: '#000000',
  },
}
SCSS
$custom: #311573;
$custom-light: #72569c;
$custom-dark: #000000;
JSON
{
  "hex": "#311573",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 257.872,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30664,
    "c": 0.14695,
    "h": 287.9
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#311573
secondary
#88A93B
accent
#EC3CB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311573

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

Preview Lab → · Contrast checker → · Palette generator →

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