#310B45#310B45

#310B45 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.104 H 310.8°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#310B45
RGBrgb(49, 11, 69)
HSLhsl(279, 73%, 16%)
HSVhsv(279, 84%, 27%)
CMYKcmyk(29%, 84.1%, 0%, 72.9%)
CIE-LABlab(11.43, 29.68, -27.76)
CIE-LCHlch(11.43, 40.64, 316.91°)
OKLaboklab(24.97% 0.068 -0.0786)
OKLCHoklch(24.97% 0.104 310.8)
XYZxyz(2.4603, 1.3220, 5.7546)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B45 #1F450B
analogous
#140B45 #310B45 #450B3C
triadic
#310B45 #45310B #0B4531
tetradic
#310B45 #45140B #1F450B #0B3C45
square
#310B45 #45140B #1F450B #0B3C45
split-complementary
#310B45 #3C450B #0B4514
monochromatic
#13041A #13041A #310B45 #56137A #7C1CAF

Accessibility & contrast

On white

16.61
#310B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#310B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B45
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B45#FFFFFF#000000##FFFFFF
##310B451.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D47
Deuteranopia (green-blind)
#021F44
Tritanopia (blue-blind)
#2E1927
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310b45;
/* rgb */ color: rgb(49, 11, 69);
/* oklch */ color: oklch(25.0% 0.104 310.8);
Tailwind
colors: {
  custom: {
    50: '#6c4f79',
    500: '#310b45',
    950: '#000000',
  },
}
SCSS
$custom: #310b45;
$custom-light: #6c4f79;
$custom-dark: #000000;
JSON
{
  "hex": "#310b45",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 69
  },
  "hsl": {
    "h": 279.31,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24974,
    "c": 0.10394,
    "h": 310.8
  },
  "luminance": 0.01322
}

Semantic roles & 50–950 ramp

primary
#310B45
secondary
#48812A
accent
#EF3978
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310B45

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

Preview Lab → · Contrast checker → · Palette generator →

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