#310F3F#310F3F

#310F3F is a very dark, moderate purple. Relative luminance 0.014; OKLCH L 25.0% C 0.091 H 314.4°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#310F3F
RGBrgb(49, 15, 63)
HSLhsl(283, 62%, 15%)
HSVhsv(283, 76%, 25%)
CMYKcmyk(22.2%, 76.2%, 0%, 75.3%)
CIE-LABlab(11.65, 26.18, -23.18)
CIE-LCHlch(11.65, 34.97, 318.47°)
OKLaboklab(24.97% 0.0639 -0.0652)
OKLCHoklch(24.97% 0.091 314.4)
XYZxyz(2.3345, 1.3536, 4.8400)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F3F #1D3F0F
analogous
#190F3F #310F3F #3F0F35
triadic
#310F3F #3F310F #0F3F31
tetradic
#310F3F #3F190F #1D3F0F #0F353F
square
#310F3F #3F190F #1D3F0F #0F353F
split-complementary
#310F3F #353F0F #0F3F19
monochromatic
#130619 #130619 #310F3F #571B70 #7E27A2

Accessibility & contrast

On white

16.53
#310F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F3F
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F3F#FFFFFF#000000##FFFFFF
##310F3F1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310f3f;
/* rgb */ color: rgb(49, 15, 63);
/* oklch */ color: oklch(25.0% 0.091 314.4);
Tailwind
colors: {
  custom: {
    50: '#6b5074',
    500: '#310f3f',
    950: '#000000',
  },
}
SCSS
$custom: #310f3f;
$custom-light: #6b5074;
$custom-dark: #000000;
JSON
{
  "hex": "#310f3f",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 282.5,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24974,
    "c": 0.09133,
    "h": 314.4
  },
  "luminance": 0.01353
}

Semantic roles & 50–950 ramp

primary
#310F3F
secondary
#467930
accent
#E54372
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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