#310F3E#310F3E

#310F3E is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.9% C 0.090 H 315.2°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#310F3E
RGBrgb(49, 15, 62)
HSLhsl(283, 61%, 15%)
HSVhsv(283, 76%, 24%)
CMYKcmyk(21%, 75.8%, 0%, 75.7%)
CIE-LABlab(11.57, 25.93, -22.59)
CIE-LCHlch(11.57, 34.39, 318.93°)
OKLaboklab(24.9% 0.064 -0.0635)
OKLCHoklch(24.9% 0.09 315.2)
XYZxyz(2.3068, 1.3425, 4.6941)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F3E #1C3E0F
analogous
#190F3E #310F3E #3E0F34
triadic
#310F3E #3E310F #0F3E31
tetradic
#310F3E #3E190F #1C3E0F #0F343E
square
#310F3E #3E190F #1C3E0F #0F343E
split-complementary
#310F3E #343E0F #0F3E19
monochromatic
#130619 #130619 #310F3E #581B6F #7F27A1

Accessibility & contrast

On white

16.56
#310F3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F3E
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F3E#FFFFFF#000000##FFFFFF
##310F3E1.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D3F
Deuteranopia (green-blind)
#0E203D
Tritanopia (blue-blind)
#301825
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310f3e;
/* rgb */ color: rgb(49, 15, 62);
/* oklch */ color: oklch(24.9% 0.090 315.2);
Tailwind
colors: {
  custom: {
    50: '#6b5073',
    500: '#310f3e',
    950: '#000000',
  },
}
SCSS
$custom: #310f3e;
$custom-light: #6b5073;
$custom-dark: #000000;
JSON
{
  "hex": "#310f3e",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 62
  },
  "hsl": {
    "h": 283.404,
    "s": 61.039,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24896,
    "c": 0.09015,
    "h": 315.2
  },
  "luminance": 0.01342
}

Semantic roles & 50–950 ramp

primary
#310F3E
secondary
#447830
accent
#E44470
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310F3E

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

Preview Lab → · Contrast checker → · Palette generator →

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