#310B48#310B48

#310B48 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.107 H 308.8°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#310B48
RGBrgb(49, 11, 72)
HSLhsl(277, 73%, 16%)
HSVhsv(277, 85%, 28%)
CMYKcmyk(31.9%, 84.7%, 0%, 71.8%)
CIE-LABlab(11.69, 30.44, -29.44)
CIE-LCHlch(11.69, 42.35, 315.96°)
OKLaboklab(25.24% 0.0673 -0.0836)
OKLCHoklch(25.24% 0.107 308.8)
XYZxyz(2.5558, 1.3602, 6.2576)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B48 #22480B
analogous
#130B48 #310B48 #480B41
triadic
#310B48 #48310B #0B4831
tetradic
#310B48 #48130B #22480B #0B4148
square
#310B48 #48130B #22480B #0B4148
split-complementary
#310B48 #41480B #0B4813
monochromatic
#12041B #12041B #310B48 #55137D #791BB2

Accessibility & contrast

On white

16.51
#310B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#310B48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B48
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B48#FFFFFF#000000##FFFFFF
##310B481.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4A
Deuteranopia (green-blind)
#001F47
Tritanopia (blue-blind)
#2D1A29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310b48;
/* rgb */ color: rgb(49, 11, 72);
/* oklch */ color: oklch(25.2% 0.107 308.8);
Tailwind
colors: {
  custom: {
    50: '#6c4f7b',
    500: '#310b48',
    950: '#000000',
  },
}
SCSS
$custom: #310b48;
$custom-light: #6c4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#310b48",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 72
  },
  "hsl": {
    "h": 277.377,
    "s": 73.494,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25241,
    "c": 0.10729,
    "h": 308.8
  },
  "luminance": 0.0136
}

Semantic roles & 50–950 ramp

primary
#310B48
secondary
#4C842A
accent
#F0387D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310B48

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

Preview Lab → · Contrast checker → · Palette generator →

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