#310C49#310C49

#310C49 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.107 H 308.0°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#310C49
RGBrgb(49, 12, 73)
HSLhsl(276, 72%, 17%)
HSVhsv(276, 84%, 29%)
CMYKcmyk(32.9%, 83.6%, 0%, 71.4%)
CIE-LABlab(11.94, 30.24, -29.73)
CIE-LCHlch(11.94, 42.41, 315.48°)
OKLaboklab(25.44% 0.066 -0.0844)
OKLCHoklch(25.44% 0.107 308)
XYZxyz(2.6004, 1.3970, 6.4347)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C49 #24490C
analogous
#120C49 #310C49 #490C43
triadic
#310C49 #49310C #0C4931
tetradic
#310C49 #49120C #24490C #0C4349
square
#310C49 #49120C #24490C #0C4349
split-complementary
#310C49 #43490C #0C4912
monochromatic
#12041A #12041A #310C49 #54157E #781DB2

Accessibility & contrast

On white

16.41
#310C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#310C49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C49
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C49#FFFFFF#000000##FFFFFF
##310C491.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4B
Deuteranopia (green-blind)
#002048
Tritanopia (blue-blind)
#2D1B2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310c49;
/* rgb */ color: rgb(49, 12, 73);
/* oklch */ color: oklch(25.4% 0.107 308.0);
Tailwind
colors: {
  custom: {
    50: '#6c4f7c',
    500: '#310c49',
    950: '#000000',
  },
}
SCSS
$custom: #310c49;
$custom-light: #6c4f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#310c49",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 73
  },
  "hsl": {
    "h": 276.393,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25443,
    "c": 0.10717,
    "h": 308
  },
  "luminance": 0.01397
}

Semantic roles & 50–950 ramp

primary
#310C49
secondary
#4F852C
accent
#EE3981
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310C49

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

Preview Lab → · Contrast checker → · Palette generator →

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