#310B47#310B47

#310B47 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.2% C 0.106 H 309.5°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#310B47
RGBrgb(49, 11, 71)
HSLhsl(278, 73%, 16%)
HSVhsv(278, 85%, 28%)
CMYKcmyk(31%, 84.5%, 0%, 72.2%)
CIE-LABlab(11.60, 30.18, -28.88)
CIE-LCHlch(11.60, 41.78, 316.26°)
OKLaboklab(25.15% 0.0675 -0.0819)
OKLCHoklch(25.15% 0.106 309.5)
XYZxyz(2.5234, 1.3473, 6.0871)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B47 #21470B
analogous
#130B47 #310B47 #470B3F
triadic
#310B47 #47310B #0B4731
tetradic
#310B47 #47130B #21470B #0B3F47
square
#310B47 #47130B #21470B #0B3F47
split-complementary
#310B47 #3F470B #0B4713
monochromatic
#12041A #12041A #310B47 #56137C #7A1BB1

Accessibility & contrast

On white

16.54
#310B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B47
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B47#FFFFFF#000000##FFFFFF
##310B471.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#2E1928
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310b47;
/* rgb */ color: rgb(49, 11, 71);
/* oklch */ color: oklch(25.2% 0.106 309.5);
Tailwind
colors: {
  custom: {
    50: '#6c4f7b',
    500: '#310b47',
    950: '#000000',
  },
}
SCSS
$custom: #310b47;
$custom-light: #6c4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#310b47",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 71
  },
  "hsl": {
    "h": 278,
    "s": 73.171,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25151,
    "c": 0.10617,
    "h": 309.5
  },
  "luminance": 0.01347
}

Semantic roles & 50–950 ramp

primary
#310B47
secondary
#4B832A
accent
#F0387B
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310B47

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

Preview Lab → · Contrast checker → · Palette generator →

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