#311973#311973

#311973 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.143 H 287.1°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#311973
RGBrgb(49, 25, 115)
HSLhsl(256, 64%, 27%)
HSVhsv(256, 78%, 45%)
CMYKcmyk(57.4%, 78.3%, 0%, 54.9%)
CIE-LABlab(18.30, 35.77, -47.42)
CIE-LCHlch(18.30, 59.39, 307.03°)
OKLaboklab(31.17% 0.042 -0.1364)
OKLCHoklch(31.17% 0.143 287.1)
XYZxyz(4.7078, 2.5858, 16.4674)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311973 #5B7319
analogous
#192E73 #311973 #5E1973
triadic
#311973 #733119 #197331
tetradic
#311973 #73192E #5B7319 #19735E
square
#311973 #73192E #5B7319 #19735E
split-complementary
#311973 #735E19 #2E7319
monochromatic
#0B0519 #1C0E41 #311973 #4624A5 #5E34D3

Accessibility & contrast

On white

13.84
#311973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#311973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311973
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311973#FFFFFF#000000##FFFFFF
##3119731.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#143245
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311973;
/* rgb */ color: rgb(49, 25, 115);
/* oklch */ color: oklch(31.2% 0.143 287.1);
Tailwind
colors: {
  custom: {
    50: '#72599c',
    500: '#311973',
    950: '#000000',
  },
}
SCSS
$custom: #311973;
$custom-light: #72599c;
$custom-dark: #000000;
JSON
{
  "hex": "#311973",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 256,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31166,
    "c": 0.14275,
    "h": 287.1
  },
  "luminance": 0.02586
}

Semantic roles & 50–950 ramp

primary
#311973
secondary
#8CA840
accent
#E741BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311973

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

Preview Lab → · Contrast checker → · Palette generator →

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