#310F37#310F37

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

Color values

HEX#310F37
RGBrgb(49, 15, 55)
HSLhsl(291, 57%, 14%)
HSVhsv(291, 73%, 22%)
CMYKcmyk(10.9%, 72.7%, 0%, 78.4%)
CIE-LABlab(11.07, 24.23, -18.38)
CIE-LCHlch(11.07, 30.41, 322.81°)
OKLaboklab(24.37% 0.0641 -0.0512)
OKLCHoklch(24.37% 0.082 321.4)
XYZxyz(2.1270, 1.2706, 3.7469)
Luminance0.0127 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F37 #15370F
analogous
#1D0F37 #310F37 #370F29
triadic
#310F37 #37310F #0F3731
tetradic
#310F37 #371D0F #15370F #0F2937
square
#310F37 #371D0F #15370F #0F2937
split-complementary
#310F37 #29370F #0F371D
monochromatic
#150718 #150718 #310F37 #5C1C67 #872997

Accessibility & contrast

On white

16.75
#310F37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#310F37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F37
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F37#FFFFFF#000000##FFFFFF
##310F371.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061B38
Deuteranopia (green-blind)
#131F36
Tritanopia (blue-blind)
#321521
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310f37;
/* rgb */ color: rgb(49, 15, 55);
/* oklch */ color: oklch(24.4% 0.082 321.4);
Tailwind
colors: {
  custom: {
    50: '#6b506e',
    500: '#310f37',
    950: '#000000',
  },
}
SCSS
$custom: #310f37;
$custom-light: #6b506e;
$custom-dark: #000000;
JSON
{
  "hex": "#310f37",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 55
  },
  "hsl": {
    "h": 291,
    "s": 57.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24372,
    "c": 0.08203,
    "h": 321.4
  },
  "luminance": 0.0127
}

Semantic roles & 50–950 ramp

primary
#310F37
secondary
#3A7131
accent
#E0475E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #310F37

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

Preview Lab → · Contrast checker → · Palette generator →

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