#310F4A#310F4A

#310F4A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.104 H 306.7°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#310F4A
RGBrgb(49, 15, 74)
HSLhsl(275, 66%, 17%)
HSVhsv(275, 80%, 29%)
CMYKcmyk(33.8%, 79.7%, 0%, 71%)
CIE-LABlab(12.54, 29.04, -29.45)
CIE-LCHlch(12.54, 41.37, 314.60°)
OKLaboklab(25.9% 0.0624 -0.0836)
OKLCHoklch(25.9% 0.104 306.7)
XYZxyz(2.6732, 1.4891, 6.6238)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F4A #284A0F
analogous
#130F4A #310F4A #4A0F46
triadic
#310F4A #4A310F #0F4A31
tetradic
#310F4A #4A130F #284A0F #0F464A
square
#310F4A #4A130F #284A0F #0F464A
split-complementary
#310F4A #464A0F #0F4A13
monochromatic
#110519 #110519 #310F4A #53197D #7424B0

Accessibility & contrast

On white

16.18
#310F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F4A
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F4A#FFFFFF#000000##FFFFFF
##310F4A1.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#002149
Tritanopia (blue-blind)
#2D1D2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #310f4a;
/* rgb */ color: rgb(49, 15, 74);
/* oklch */ color: oklch(25.9% 0.104 306.7);
Tailwind
colors: {
  custom: {
    50: '#6c517d',
    500: '#310f4a',
    950: '#000000',
  },
}
SCSS
$custom: #310f4a;
$custom-light: #6c517d;
$custom-dark: #000000;
JSON
{
  "hex": "#310f4a",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 274.576,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25895,
    "c": 0.10437,
    "h": 306.7
  },
  "luminance": 0.01489
}

Semantic roles & 50–950 ramp

primary
#310F4A
secondary
#548430
accent
#E93F87
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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