#310946#310946

#310946 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.108 H 310.5°. Best body text is #FFFFFF at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#310946
RGBrgb(49, 9, 70)
HSLhsl(279, 77%, 15%)
HSVhsv(279, 87%, 27%)
CMYKcmyk(30%, 87.1%, 0%, 72.5%)
CIE-LABlab(11.21, 30.81, -28.82)
CIE-LCHlch(11.21, 42.19, 316.91°)
OKLaboklab(24.85% 0.0698 -0.0817)
OKLCHoklch(24.85% 0.108 310.5)
XYZxyz(2.4696, 1.2906, 5.9122)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310946 #1E4609
analogous
#120946 #310946 #46093C
triadic
#310946 #463109 #094631
tetradic
#310946 #461209 #1E4609 #093C46
square
#310946 #461209 #1E4609 #093C46
split-complementary
#310946 #3C4609 #094612
monochromatic
#13031B #13031B #310946 #57107C #7D17B2

Accessibility & contrast

On white

16.69
#310946 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#310946 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310946
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310946#FFFFFF#000000##FFFFFF
##3109461.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C48
Deuteranopia (green-blind)
#001F45
Tritanopia (blue-blind)
#2E1827
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310946;
/* rgb */ color: rgb(49, 9, 70);
/* oklch */ color: oklch(24.8% 0.108 310.5);
Tailwind
colors: {
  custom: {
    50: '#6c4e7a',
    500: '#310946',
    950: '#000000',
  },
}
SCSS
$custom: #310946;
$custom-light: #6c4e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#310946",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 70
  },
  "hsl": {
    "h": 279.344,
    "s": 77.215,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24847,
    "c": 0.10751,
    "h": 310.5
  },
  "luminance": 0.01291
}

Semantic roles & 50–950 ramp

primary
#310946
secondary
#478427
accent
#F43476
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310946

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

Preview Lab → · Contrast checker → · Palette generator →

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