#310C51#310C51

#310C51 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.116 H 303.3°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#310C51
RGBrgb(49, 12, 81)
HSLhsl(272, 74%, 18%)
HSVhsv(272, 85%, 32%)
CMYKcmyk(39.5%, 85.2%, 0%, 68.2%)
CIE-LABlab(12.67, 32.35, -34.06)
CIE-LCHlch(12.67, 46.97, 313.52°)
OKLaboklab(26.19% 0.0639 -0.0972)
OKLCHoklch(26.19% 0.116 303.3)
XYZxyz(2.8829, 1.5100, 7.9226)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C51 #2C510C
analogous
#0E0C51 #310C51 #510C4E
triadic
#310C51 #51310C #0C5131
tetradic
#310C51 #510E0C #2C510C #0C4E51
square
#310C51 #510E0C #2C510C #0C4E51
split-complementary
#310C51 #4E510C #0C510E
monochromatic
#10041B #11041C #310C51 #511486 #711CBC

Accessibility & contrast

On white

16.13
#310C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C51
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C51#FFFFFF#000000##FFFFFF
##310C511.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002053
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#2A1E2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #310c51;
/* rgb */ color: rgb(49, 12, 81);
/* oklch */ color: oklch(26.2% 0.116 303.3);
Tailwind
colors: {
  custom: {
    50: '#6d5082',
    500: '#310c51',
    950: '#000000',
  },
}
SCSS
$custom: #310c51;
$custom-light: #6d5082;
$custom-dark: #000000;
JSON
{
  "hex": "#310c51",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 272.174,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26187,
    "c": 0.11626,
    "h": 303.3
  },
  "luminance": 0.0151
}

Semantic roles & 50–950 ramp

primary
#310C51
secondary
#598C2C
accent
#F1378D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310C51

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

Preview Lab → · Contrast checker → · Palette generator →

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