#310D49#310D49

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

Color values

HEX#310D49
RGBrgb(49, 13, 73)
HSLhsl(276, 70%, 17%)
HSVhsv(276, 82%, 29%)
CMYKcmyk(32.9%, 82.2%, 0%, 71.4%)
CIE-LABlab(12.10, 29.77, -29.47)
CIE-LCHlch(12.10, 41.89, 315.29°)
OKLaboklab(25.56% 0.0649 -0.0837)
OKLCHoklch(25.56% 0.106 307.8)
XYZxyz(2.6129, 1.4219, 6.4388)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D49 #25490D
analogous
#130D49 #310D49 #490D43
triadic
#310D49 #49310D #0D4931
tetradic
#310D49 #49130D #25490D #0D4349
square
#310D49 #49130D #25490D #0D4349
split-complementary
#310D49 #43490D #0D4913
monochromatic
#11051A #11051A #310D49 #54167D #7720B1

Accessibility & contrast

On white

16.35
#310D49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D49
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D49#FFFFFF#000000##FFFFFF
##310D491.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4B
Deuteranopia (green-blind)
#002048
Tritanopia (blue-blind)
#2D1B2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310d49;
/* rgb */ color: rgb(49, 13, 73);
/* oklch */ color: oklch(25.6% 0.106 307.8);
Tailwind
colors: {
  custom: {
    50: '#6c507c',
    500: '#310d49',
    950: '#000000',
  },
}
SCSS
$custom: #310d49;
$custom-light: #6c507c;
$custom-dark: #000000;
JSON
{
  "hex": "#310d49",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 73
  },
  "hsl": {
    "h": 276,
    "s": 69.767,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25559,
    "c": 0.10589,
    "h": 307.8
  },
  "luminance": 0.01422
}

Semantic roles & 50–950 ramp

primary
#310D49
secondary
#50842D
accent
#ED3B82
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310D49

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

Preview Lab → · Contrast checker → · Palette generator →

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