#310C47#310C47

#310C47 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.105 H 309.3°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#310C47
RGBrgb(49, 12, 71)
HSLhsl(278, 71%, 16%)
HSVhsv(278, 83%, 28%)
CMYKcmyk(31%, 83.1%, 0%, 72.2%)
CIE-LABlab(11.76, 29.73, -28.62)
CIE-LCHlch(11.76, 41.27, 316.08°)
OKLaboklab(25.26% 0.0665 -0.0812)
OKLCHoklch(25.26% 0.105 309.3)
XYZxyz(2.5352, 1.3709, 6.0911)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C47 #22470C
analogous
#140C47 #310C47 #470C40
triadic
#310C47 #47310C #0C4731
tetradic
#310C47 #47140C #22470C #0C4047
square
#310C47 #47140C #22470C #0C4047
split-complementary
#310C47 #40470C #0C4714
monochromatic
#12041A #12041A #310C47 #55157B #791EB0

Accessibility & contrast

On white

16.48
#310C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C47
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C47#FFFFFF#000000##FFFFFF
##310C471.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E49
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#2E1A29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310c47;
/* rgb */ color: rgb(49, 12, 71);
/* oklch */ color: oklch(25.3% 0.105 309.3);
Tailwind
colors: {
  custom: {
    50: '#6c4f7b',
    500: '#310c47',
    950: '#000000',
  },
}
SCSS
$custom: #310c47;
$custom-light: #6c4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#310c47",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 277.627,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25264,
    "c": 0.10491,
    "h": 309.3
  },
  "luminance": 0.01371
}

Semantic roles & 50–950 ramp

primary
#310C47
secondary
#4C832C
accent
#EE3A7D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310C47

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

Preview Lab → · Contrast checker → · Palette generator →

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