#310C50#310C50

#310C50 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.115 H 303.9°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#310C50
RGBrgb(49, 12, 80)
HSLhsl(273, 74%, 18%)
HSVhsv(273, 85%, 31%)
CMYKcmyk(38.8%, 85%, 0%, 68.6%)
CIE-LABlab(12.58, 32.08, -33.53)
CIE-LCHlch(12.58, 46.41, 313.73°)
OKLaboklab(26.09% 0.0642 -0.0956)
OKLCHoklch(26.09% 0.115 303.9)
XYZxyz(2.8457, 1.4951, 7.7265)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C50 #2B500C
analogous
#0F0C50 #310C50 #500C4D
triadic
#310C50 #50310C #0C5031
tetradic
#310C50 #500F0C #2B500C #0C4D50
square
#310C50 #500F0C #2B500C #0C4D50
split-complementary
#310C50 #4D500C #0C500F
monochromatic
#10041B #10041B #310C50 #521485 #721CBA

Accessibility & contrast

On white

16.17
#310C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C50
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C50#FFFFFF#000000##FFFFFF
##310C501.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002052
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#2B1E2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #310c50;
/* rgb */ color: rgb(49, 12, 80);
/* oklch */ color: oklch(26.1% 0.115 303.9);
Tailwind
colors: {
  custom: {
    50: '#6d5082',
    500: '#310c50',
    950: '#000000',
  },
}
SCSS
$custom: #310c50;
$custom-light: #6d5082;
$custom-dark: #000000;
JSON
{
  "hex": "#310c50",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 80
  },
  "hsl": {
    "h": 272.647,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26091,
    "c": 0.11513,
    "h": 303.9
  },
  "luminance": 0.01495
}

Semantic roles & 50–950 ramp

primary
#310C50
secondary
#588B2C
accent
#F1378C
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310C50

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

Preview Lab → · Contrast checker → · Palette generator →

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