#310A46#310A46

#310A46 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.106 H 310.3°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#310A46
RGBrgb(49, 10, 70)
HSLhsl(279, 75%, 16%)
HSVhsv(279, 86%, 27%)
CMYKcmyk(30%, 85.7%, 0%, 72.5%)
CIE-LABlab(11.36, 30.37, -28.58)
CIE-LCHlch(11.36, 41.70, 316.75°)
OKLaboklab(24.95% 0.0688 -0.081)
OKLCHoklch(24.95% 0.106 310.3)
XYZxyz(2.4804, 1.3123, 5.9158)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A46 #1F460A
analogous
#130A46 #310A46 #460A3D
triadic
#310A46 #46310A #0A4631
tetradic
#310A46 #46130A #1F460A #0A3D46
square
#310A46 #46130A #1F460A #0A3D46
split-complementary
#310A46 #3D460A #0A4613
monochromatic
#13041B #13041B #310A46 #56127C #7C19B1

Accessibility & contrast

On white

16.63
#310A46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#310A46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310A46
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A46#FFFFFF#000000##FFFFFF
##310A461.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310a46;
/* rgb */ color: rgb(49, 10, 70);
/* oklch */ color: oklch(25.0% 0.106 310.3);
Tailwind
colors: {
  custom: {
    50: '#6c4e7a',
    500: '#310a46',
    950: '#000000',
  },
}
SCSS
$custom: #310a46;
$custom-light: #6c4e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#310a46",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 70
  },
  "hsl": {
    "h": 279,
    "s": 75,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24954,
    "c": 0.10629,
    "h": 310.3
  },
  "luminance": 0.01312
}

Semantic roles & 50–950 ramp

primary
#310A46
secondary
#488329
accent
#F23678
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310A46

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

Preview Lab → · Contrast checker → · Palette generator →

#310A46 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva