#310F38#310F38

#310F38 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.4% C 0.083 H 320.4°. Best body text is #FFFFFF at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#310F38
RGBrgb(49, 15, 56)
HSLhsl(290, 58%, 14%)
HSVhsv(290, 73%, 22%)
CMYKcmyk(12.5%, 73.2%, 0%, 78%)
CIE-LABlab(11.14, 24.47, -19.00)
CIE-LCHlch(11.14, 30.97, 322.17°)
OKLaboklab(24.44% 0.0641 -0.053)
OKLCHoklch(24.44% 0.083 320.4)
XYZxyz(2.1512, 1.2802, 3.8744)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F38 #16380F
analogous
#1D0F38 #310F38 #380F2B
triadic
#310F38 #38310F #0F3831
tetradic
#310F38 #381D0F #16380F #0F2B38
square
#310F38 #381D0F #16380F #0F2B38
split-complementary
#310F38 #2B380F #0F381D
monochromatic
#150618 #150618 #310F38 #5B1C68 #852999

Accessibility & contrast

On white

16.72
#310F38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F38
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F38#FFFFFF#000000##FFFFFF
##310F381.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051B39
Deuteranopia (green-blind)
#131F37
Tritanopia (blue-blind)
#311621
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310f38;
/* rgb */ color: rgb(49, 15, 56);
/* oklch */ color: oklch(24.4% 0.083 320.4);
Tailwind
colors: {
  custom: {
    50: '#6b506f',
    500: '#310f38',
    950: '#000000',
  },
}
SCSS
$custom: #310f38;
$custom-light: #6b506f;
$custom-dark: #000000;
JSON
{
  "hex": "#310f38",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 56
  },
  "hsl": {
    "h": 289.756,
    "s": 57.746,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24444,
    "c": 0.08318,
    "h": 320.4
  },
  "luminance": 0.0128
}

Semantic roles & 50–950 ramp

primary
#310F38
secondary
#3C7230
accent
#E14761
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310F38

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

Preview Lab → · Contrast checker → · Palette generator →

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