#310B4B#310B4B

#310B4B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.111 H 307.0°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#310B4B
RGBrgb(49, 11, 75)
HSLhsl(276, 74%, 17%)
HSVhsv(276, 85%, 29%)
CMYKcmyk(34.7%, 85.3%, 0%, 70.6%)
CIE-LABlab(11.96, 31.21, -31.09)
CIE-LCHlch(11.96, 44.05, 315.12°)
OKLaboklab(25.52% 0.0665 -0.0884)
OKLCHoklch(25.52% 0.111 307)
XYZxyz(2.6560, 1.4003, 6.7856)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B4B #254B0B
analogous
#110B4B #310B4B #4B0B45
triadic
#310B4B #4B310B #0B4B31
tetradic
#310B4B #4B110B #254B0B #0B454B
square
#310B4B #4B110B #254B0B #0B454B
split-complementary
#310B4B #454B0B #0B4B11
monochromatic
#11041B #11041B #310B4B #541380 #771BB6

Accessibility & contrast

On white

16.41
#310B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B4B
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B4B#FFFFFF#000000##FFFFFF
##310B4B1.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#2D1B2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310b4b;
/* rgb */ color: rgb(49, 11, 75);
/* oklch */ color: oklch(25.5% 0.111 307.0);
Tailwind
colors: {
  custom: {
    50: '#6d4f7e',
    500: '#310b4b',
    950: '#000000',
  },
}
SCSS
$custom: #310b4b;
$custom-light: #6d4f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#310b4b",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 75
  },
  "hsl": {
    "h": 275.625,
    "s": 74.419,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25515,
    "c": 0.11065,
    "h": 307
  },
  "luminance": 0.014
}

Semantic roles & 50–950 ramp

primary
#310B4B
secondary
#50872B
accent
#F13782
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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