#310B46#310B46

#310B46 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.105 H 310.2°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#310B46
RGBrgb(49, 11, 70)
HSLhsl(279, 73%, 16%)
HSVhsv(279, 84%, 27%)
CMYKcmyk(30%, 84.3%, 0%, 72.5%)
CIE-LABlab(11.52, 29.93, -28.33)
CIE-LCHlch(11.52, 41.21, 316.58°)
OKLaboklab(25.06% 0.0678 -0.0803)
OKLCHoklch(25.06% 0.105 310.2)
XYZxyz(2.4916, 1.3346, 5.9195)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B46 #20460B
analogous
#130B46 #310B46 #460B3D
triadic
#310B46 #46310B #0B4631
tetradic
#310B46 #46130B #20460B #0B3D46
square
#310B46 #46130B #20460B #0B3D46
split-complementary
#310B46 #3D460B #0B4613
monochromatic
#13041A #13041A #310B46 #56137B #7B1CB0

Accessibility & contrast

On white

16.57
#310B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B46
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B46#FFFFFF#000000##FFFFFF
##310B461.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D48
Deuteranopia (green-blind)
#011F45
Tritanopia (blue-blind)
#2E1928
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310b46;
/* rgb */ color: rgb(49, 11, 70);
/* oklch */ color: oklch(25.1% 0.105 310.2);
Tailwind
colors: {
  custom: {
    50: '#6c4f7a',
    500: '#310b46',
    950: '#000000',
  },
}
SCSS
$custom: #310b46;
$custom-light: #6c4f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#310b46",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 70
  },
  "hsl": {
    "h": 278.644,
    "s": 72.84,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25062,
    "c": 0.10505,
    "h": 310.2
  },
  "luminance": 0.01335
}

Semantic roles & 50–950 ramp

primary
#310B46
secondary
#4A822A
accent
#F03879
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310B46

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

Preview Lab → · Contrast checker → · Palette generator →

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