#310C4D#310C4D

#310C4D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.112 H 305.6°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#310C4D
RGBrgb(49, 12, 77)
HSLhsl(274, 73%, 17%)
HSVhsv(274, 84%, 30%)
CMYKcmyk(36.4%, 84.4%, 0%, 69.8%)
CIE-LABlab(12.30, 31.29, -31.92)
CIE-LCHlch(12.30, 44.70, 314.43°)
OKLaboklab(25.81% 0.065 -0.0909)
OKLCHoklch(25.81% 0.112 305.6)
XYZxyz(2.7373, 1.4518, 7.1557)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C4D #284D0C
analogous
#110C4D #310C4D #4D0C49
triadic
#310C4D #4D310C #0C4D31
tetradic
#310C4D #4D110C #284D0C #0C494D
square
#310C4D #4D110C #284D0C #0C494D
split-complementary
#310C4D #494D0C #0C4D11
monochromatic
#11041A #11041A #310C4D #531482 #741DB7

Accessibility & contrast

On white

16.27
#310C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#310C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C4D
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C4D#FFFFFF#000000##FFFFFF
##310C4D1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#2C1D2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310c4d;
/* rgb */ color: rgb(49, 12, 77);
/* oklch */ color: oklch(25.8% 0.112 305.6);
Tailwind
colors: {
  custom: {
    50: '#6d4f7f',
    500: '#310c4d',
    950: '#000000',
  },
}
SCSS
$custom: #310c4d;
$custom-light: #6d4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#310c4d",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 274.154,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25809,
    "c": 0.11172,
    "h": 305.6
  },
  "luminance": 0.01452
}

Semantic roles & 50–950 ramp

primary
#310C4D
secondary
#54892C
accent
#F03887
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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