#310D4B#310D4B

#310D4B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.108 H 306.6°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#310D4B
RGBrgb(49, 13, 75)
HSLhsl(275, 70%, 17%)
HSVhsv(275, 83%, 29%)
CMYKcmyk(34.7%, 82.7%, 0%, 70.6%)
CIE-LABlab(12.28, 30.30, -30.57)
CIE-LCHlch(12.28, 43.04, 314.75°)
OKLaboklab(25.74% 0.0645 -0.0869)
OKLCHoklch(25.74% 0.108 306.6)
XYZxyz(2.6803, 1.4488, 6.7937)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D4B #274B0D
analogous
#120D4B #310D4B #4B0D46
triadic
#310D4B #4B310D #0D4B31
tetradic
#310D4B #4B120D #274B0D #0D464B
square
#310D4B #4B120D #274B0D #0D464B
split-complementary
#310D4B #464B0D #0D4B12
monochromatic
#11051A #11051A #310D4B #53167F #751FB3

Accessibility & contrast

On white

16.28
#310D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#310D4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D4B
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D4B#FFFFFF#000000##FFFFFF
##310D4B1.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#2C1C2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310d4b;
/* rgb */ color: rgb(49, 13, 75);
/* oklch */ color: oklch(25.7% 0.108 306.6);
Tailwind
colors: {
  custom: {
    50: '#6c507e',
    500: '#310d4b',
    950: '#000000',
  },
}
SCSS
$custom: #310d4b;
$custom-light: #6c507e;
$custom-dark: #000000;
JSON
{
  "hex": "#310d4b",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 75
  },
  "hsl": {
    "h": 274.839,
    "s": 70.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25739,
    "c": 0.1082,
    "h": 306.6
  },
  "luminance": 0.01449
}

Semantic roles & 50–950 ramp

primary
#310D4B
secondary
#53862E
accent
#ED3B85
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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