#310C46#310C46

#310C46 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.104 H 310.0°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#310C46
RGBrgb(49, 12, 70)
HSLhsl(278, 71%, 16%)
HSVhsv(278, 83%, 27%)
CMYKcmyk(30%, 82.9%, 0%, 72.5%)
CIE-LABlab(11.68, 29.47, -28.06)
CIE-LCHlch(11.68, 40.69, 316.40°)
OKLaboklab(25.18% 0.0667 -0.0795)
OKLCHoklch(25.18% 0.104 310)
XYZxyz(2.5034, 1.3582, 5.9234)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C46 #21460C
analogous
#140C46 #310C46 #460C3E
triadic
#310C46 #46310C #0C4631
tetradic
#310C46 #46140C #21460C #0C3E46
square
#310C46 #46140C #21460C #0C3E46
split-complementary
#310C46 #3E460C #0C4614
monochromatic
#12041A #12041A #310C46 #56157A #7A1EAE

Accessibility & contrast

On white

16.51
#310C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#310C46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C46
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C46#FFFFFF#000000##FFFFFF
##310C461.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D48
Deuteranopia (green-blind)
#021F45
Tritanopia (blue-blind)
#2E1A28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310c46;
/* rgb */ color: rgb(49, 12, 70);
/* oklch */ color: oklch(25.2% 0.104 310.0);
Tailwind
colors: {
  custom: {
    50: '#6c4f7a',
    500: '#310c46',
    950: '#000000',
  },
}
SCSS
$custom: #310c46;
$custom-light: #6c4f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#310c46",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 278.276,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25176,
    "c": 0.10377,
    "h": 310
  },
  "luminance": 0.01358
}

Semantic roles & 50–950 ramp

primary
#310C46
secondary
#4B822C
accent
#ED3A7B
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310C46

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

Preview Lab → · Contrast checker → · Palette generator →

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