#310846#310846

#310846 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.109 H 310.7°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#310846
RGBrgb(49, 8, 70)
HSLhsl(280, 79%, 15%)
HSVhsv(280, 89%, 27%)
CMYKcmyk(30%, 88.6%, 0%, 72.5%)
CIE-LABlab(11.06, 31.25, -29.07)
CIE-LCHlch(11.06, 42.68, 317.07°)
OKLaboklab(24.74% 0.0709 -0.0825)
OKLCHoklch(24.74% 0.109 310.7)
XYZxyz(2.4587, 1.2689, 5.9086)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310846 #1D4608
analogous
#120846 #310846 #46083C
triadic
#310846 #463108 #084631
tetradic
#310846 #461208 #1D4608 #083C46
square
#310846 #461208 #1D4608 #083C46
split-complementary
#310846 #3C4608 #084612
monochromatic
#13031B #13031B #310846 #570E7D #7E15B4

Accessibility & contrast

On white

16.75
#310846 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#310846 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310846
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310846#FFFFFF#000000##FFFFFF
##3108461.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310846;
/* rgb */ color: rgb(49, 8, 70);
/* oklch */ color: oklch(24.7% 0.109 310.7);
Tailwind
colors: {
  custom: {
    50: '#6c4d7a',
    500: '#310846',
    950: '#000000',
  },
}
SCSS
$custom: #310846;
$custom-light: #6c4d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#310846",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 70
  },
  "hsl": {
    "h": 279.677,
    "s": 79.487,
    "l": 15.294
  },
  "oklch": {
    "l": 0.2474,
    "c": 0.10874,
    "h": 310.7
  },
  "luminance": 0.01269
}

Semantic roles & 50–950 ramp

primary
#310846
secondary
#468426
accent
#F63274
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #310846

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

Preview Lab → · Contrast checker → · Palette generator →

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