#310B49#310B49

#310B49 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.108 H 308.2°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#310B49
RGBrgb(49, 11, 73)
HSLhsl(277, 74%, 16%)
HSVhsv(277, 85%, 29%)
CMYKcmyk(32.9%, 84.9%, 0%, 71.4%)
CIE-LABlab(11.78, 30.69, -29.99)
CIE-LCHlch(11.78, 42.91, 315.66°)
OKLaboklab(25.33% 0.0671 -0.0852)
OKLCHoklch(25.33% 0.108 308.2)
XYZxyz(2.5886, 1.3734, 6.4308)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B49 #23490B
analogous
#120B49 #310B49 #490B42
triadic
#310B49 #49310B #0B4931
tetradic
#310B49 #49120B #23490B #0B4249
square
#310B49 #49120B #23490B #0B4249
split-complementary
#310B49 #42490B #0B4912
monochromatic
#12041B #12041B #310B49 #55137E #781BB3

Accessibility & contrast

On white

16.48
#310B49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B49
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B49#FFFFFF#000000##FFFFFF
##310B491.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4B
Deuteranopia (green-blind)
#001F48
Tritanopia (blue-blind)
#2D1A2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310b49;
/* rgb */ color: rgb(49, 11, 73);
/* oklch */ color: oklch(25.3% 0.108 308.2);
Tailwind
colors: {
  custom: {
    50: '#6c4f7c',
    500: '#310b49',
    950: '#000000',
  },
}
SCSS
$custom: #310b49;
$custom-light: #6c4f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#310b49",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 73
  },
  "hsl": {
    "h": 276.774,
    "s": 73.81,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25332,
    "c": 0.10841,
    "h": 308.2
  },
  "luminance": 0.01373
}

Semantic roles & 50–950 ramp

primary
#310B49
secondary
#4E852A
accent
#F0377F
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310B49

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

Preview Lab → · Contrast checker → · Palette generator →

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