#310C4F#310C4F

#310C4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.114 H 304.4°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#310C4F
RGBrgb(49, 12, 79)
HSLhsl(273, 74%, 18%)
HSVhsv(273, 85%, 31%)
CMYKcmyk(38%, 84.8%, 0%, 69%)
CIE-LABlab(12.48, 31.82, -33.00)
CIE-LCHlch(12.48, 45.84, 313.96°)
OKLaboklab(26% 0.0644 -0.094)
OKLCHoklch(26% 0.114 304.4)
XYZxyz(2.8091, 1.4804, 7.5334)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C4F #2A4F0C
analogous
#0F0C4F #310C4F #4F0C4B
triadic
#310C4F #4F310C #0C4F31
tetradic
#310C4F #4F0F0C #2A4F0C #0C4B4F
square
#310C4F #4F0F0C #2A4F0C #0C4B4F
split-complementary
#310C4F #4B4F0C #0C4F0F
monochromatic
#10041B #10041B #310C4F #521484 #731CB9

Accessibility & contrast

On white

16.20
#310C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#310C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C4F
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C4F#FFFFFF#000000##FFFFFF
##310C4F1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#2B1D2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310c4f;
/* rgb */ color: rgb(49, 12, 79);
/* oklch */ color: oklch(26.0% 0.114 304.4);
Tailwind
colors: {
  custom: {
    50: '#6d5081',
    500: '#310c4f',
    950: '#000000',
  },
}
SCSS
$custom: #310c4f;
$custom-light: #6d5081;
$custom-dark: #000000;
JSON
{
  "hex": "#310c4f",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 273.134,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25997,
    "c": 0.11399,
    "h": 304.4
  },
  "luminance": 0.0148
}

Semantic roles & 50–950 ramp

primary
#310C4F
secondary
#568B2C
accent
#F0388A
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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