#310C48#310C48

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

Color values

HEX#310C48
RGBrgb(49, 12, 72)
HSLhsl(277, 71%, 16%)
HSVhsv(277, 83%, 28%)
CMYKcmyk(31.9%, 83.3%, 0%, 71.8%)
CIE-LABlab(11.85, 29.99, -29.18)
CIE-LCHlch(11.85, 41.84, 315.78°)
OKLaboklab(25.35% 0.0662 -0.0828)
OKLCHoklch(25.35% 0.106 308.7)
XYZxyz(2.5676, 1.3838, 6.2615)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C48 #23480C
analogous
#130C48 #310C48 #480C41
triadic
#310C48 #48310C #0C4831
tetradic
#310C48 #48130C #23480C #0C4148
square
#310C48 #48130C #23480C #0C4148
split-complementary
#310C48 #41480C #0C4813
monochromatic
#12041A #12041A #310C48 #55157C #781DB1

Accessibility & contrast

On white

16.45
#310C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C48
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C48#FFFFFF#000000##FFFFFF
##310C481.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4A
Deuteranopia (green-blind)
#002047
Tritanopia (blue-blind)
#2D1A29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310c48;
/* rgb */ color: rgb(49, 12, 72);
/* oklch */ color: oklch(25.4% 0.106 308.7);
Tailwind
colors: {
  custom: {
    50: '#6c4f7b',
    500: '#310c48',
    950: '#000000',
  },
}
SCSS
$custom: #310c48;
$custom-light: #6c4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#310c48",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 277,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25353,
    "c": 0.10604,
    "h": 308.7
  },
  "luminance": 0.01384
}

Semantic roles & 50–950 ramp

primary
#310C48
secondary
#4E842C
accent
#EE3A7F
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310C48

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

Preview Lab → · Contrast checker → · Palette generator →

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