#310B4C#310B4C

#310B4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.112 H 306.4°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#310B4C
RGBrgb(49, 11, 76)
HSLhsl(275, 75%, 17%)
HSVhsv(275, 86%, 30%)
CMYKcmyk(35.5%, 85.5%, 0%, 70.2%)
CIE-LABlab(12.05, 31.47, -31.63)
CIE-LCHlch(12.05, 44.62, 314.86°)
OKLaboklab(25.61% 0.0663 -0.09)
OKLCHoklch(25.61% 0.112 306.4)
XYZxyz(2.6905, 1.4141, 6.9673)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B4C #264C0B
analogous
#110B4C #310B4C #4C0B47
triadic
#310B4C #4C310B #0B4C31
tetradic
#310B4C #4C110B #264C0B #0B474C
square
#310B4C #4C110B #264C0B #0B474C
split-complementary
#310B4C #474C0B #0B4C11
monochromatic
#11041B #11041B #310B4C #531381 #761AB7

Accessibility & contrast

On white

16.37
#310B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B4C
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B4C#FFFFFF#000000##FFFFFF
##310B4C1.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#2C1C2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310b4c;
/* rgb */ color: rgb(49, 11, 76);
/* oklch */ color: oklch(25.6% 0.112 306.4);
Tailwind
colors: {
  custom: {
    50: '#6d4f7f',
    500: '#310b4c',
    950: '#000000',
  },
}
SCSS
$custom: #310b4c;
$custom-light: #6d4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#310b4c",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 76
  },
  "hsl": {
    "h": 275.077,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25608,
    "c": 0.11177,
    "h": 306.4
  },
  "luminance": 0.01414
}

Semantic roles & 50–950 ramp

primary
#310B4C
secondary
#51882B
accent
#F13684
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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