#310B4A#310B4A

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

Color values

HEX#310B4A
RGBrgb(49, 11, 74)
HSLhsl(276, 74%, 17%)
HSVhsv(276, 85%, 29%)
CMYKcmyk(33.8%, 85.1%, 0%, 71%)
CIE-LABlab(11.87, 30.95, -30.54)
CIE-LCHlch(11.87, 43.48, 315.38°)
OKLaboklab(25.42% 0.0668 -0.0868)
OKLCHoklch(25.42% 0.11 307.6)
XYZxyz(2.6221, 1.3868, 6.6068)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B4A #244A0B
analogous
#110B4A #310B4A #4A0B44
triadic
#310B4A #4A310B #0B4A31
tetradic
#310B4A #4A110B #244A0B #0B444A
square
#310B4A #4A110B #244A0B #0B444A
split-complementary
#310B4A #444A0B #0B4A11
monochromatic
#12041B #12041B #310B4A #54137F #781BB5

Accessibility & contrast

On white

16.44
#310B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B4A
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B4A#FFFFFF#000000##FFFFFF
##310B4A1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#2D1B2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310b4a;
/* rgb */ color: rgb(49, 11, 74);
/* oklch */ color: oklch(25.4% 0.110 307.6);
Tailwind
colors: {
  custom: {
    50: '#6c4f7d',
    500: '#310b4a',
    950: '#000000',
  },
}
SCSS
$custom: #310b4a;
$custom-light: #6c4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#310b4a",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 276.19,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25423,
    "c": 0.10953,
    "h": 307.6
  },
  "luminance": 0.01387
}

Semantic roles & 50–950 ramp

primary
#310B4A
secondary
#4F862B
accent
#F13781
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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