#310D3E#310D3E

#310D3E is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.093 H 315.6°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#310D3E
RGBrgb(49, 13, 62)
HSLhsl(284, 65%, 15%)
HSVhsv(284, 79%, 24%)
CMYKcmyk(21%, 79%, 0%, 75.7%)
CIE-LABlab(11.20, 26.97, -23.19)
CIE-LCHlch(11.20, 35.57, 319.31°)
OKLaboklab(24.63% 0.0667 -0.0652)
OKLCHoklch(24.63% 0.093 315.6)
XYZxyz(2.2799, 1.2887, 4.6851)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D3E #1A3E0D
analogous
#190D3E #310D3E #3E0D33
triadic
#310D3E #3E310D #0D3E31
tetradic
#310D3E #3E190D #1A3E0D #0D333E
square
#310D3E #3E190D #1A3E0D #0D333E
split-complementary
#310D3E #333E0D #0D3E19
monochromatic
#140519 #140519 #310D3E #591871 #8122A3

Accessibility & contrast

On white

16.70
#310D3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D3E
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D3E#FFFFFF#000000##FFFFFF
##310D3E1.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3F
Deuteranopia (green-blind)
#0C1F3D
Tritanopia (blue-blind)
#301724
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310d3e;
/* rgb */ color: rgb(49, 13, 62);
/* oklch */ color: oklch(24.6% 0.093 315.6);
Tailwind
colors: {
  custom: {
    50: '#6b4f73',
    500: '#310d3e',
    950: '#000000',
  },
}
SCSS
$custom: #310d3e;
$custom-light: #6b4f73;
$custom-dark: #000000;
JSON
{
  "hex": "#310d3e",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 62
  },
  "hsl": {
    "h": 284.082,
    "s": 65.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24628,
    "c": 0.09327,
    "h": 315.6
  },
  "luminance": 0.01289
}

Semantic roles & 50–950 ramp

primary
#310D3E
secondary
#417A2D
accent
#E8406C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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