#310D47#310D47

#310D47 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.104 H 309.1°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#310D47
RGBrgb(49, 13, 71)
HSLhsl(277, 69%, 16%)
HSVhsv(277, 82%, 28%)
CMYKcmyk(31%, 81.7%, 0%, 72.2%)
CIE-LABlab(11.93, 29.25, -28.35)
CIE-LCHlch(11.93, 40.74, 315.89°)
OKLaboklab(25.38% 0.0653 -0.0804)
OKLCHoklch(25.38% 0.104 309.1)
XYZxyz(2.5476, 1.3958, 6.0952)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D47 #23470D
analogous
#140D47 #310D47 #470D40
triadic
#310D47 #47310D #0D4731
tetradic
#310D47 #47140D #23470D #0D4047
square
#310D47 #47140D #23470D #0D4047
split-complementary
#310D47 #40470D #0D4714
monochromatic
#12051A #12051A #310D47 #55167B #7820AE

Accessibility & contrast

On white

16.42
#310D47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D47
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D47#FFFFFF#000000##FFFFFF
##310D471.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E49
Deuteranopia (green-blind)
#012046
Tritanopia (blue-blind)
#2E1A29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310d47;
/* rgb */ color: rgb(49, 13, 71);
/* oklch */ color: oklch(25.4% 0.104 309.1);
Tailwind
colors: {
  custom: {
    50: '#6c507b',
    500: '#310d47',
    950: '#000000',
  },
}
SCSS
$custom: #310d47;
$custom-light: #6c507b;
$custom-dark: #000000;
JSON
{
  "hex": "#310d47",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 71
  },
  "hsl": {
    "h": 277.241,
    "s": 69.048,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25383,
    "c": 0.10359,
    "h": 309.1
  },
  "luminance": 0.01396
}

Semantic roles & 50–950 ramp

primary
#310D47
secondary
#4E822D
accent
#EC3C7F
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310D47

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

Preview Lab → · Contrast checker → · Palette generator →

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