#310F40#310F40

#310F40 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.1% C 0.093 H 313.6°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#310F40
RGBrgb(49, 15, 64)
HSLhsl(282, 62%, 15%)
HSVhsv(282, 77%, 25%)
CMYKcmyk(23.4%, 76.6%, 0%, 74.9%)
CIE-LABlab(11.72, 26.43, -23.77)
CIE-LCHlch(11.72, 35.55, 318.04°)
OKLaboklab(25.05% 0.0639 -0.0669)
OKLCHoklch(25.05% 0.093 313.6)
XYZxyz(2.3627, 1.3649, 4.9885)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F40 #1E400F
analogous
#190F40 #310F40 #400F36
triadic
#310F40 #40310F #0F4031
tetradic
#310F40 #40190F #1E400F #0F3640
square
#310F40 #40190F #1E400F #0F3640
split-complementary
#310F40 #36400F #0F4019
monochromatic
#130619 #130619 #310F40 #571B72 #7D26A3

Accessibility & contrast

On white

16.50
#310F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F40
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F40#FFFFFF#000000##FFFFFF
##310F401.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#0C203F
Tritanopia (blue-blind)
#301926
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310f40;
/* rgb */ color: rgb(49, 15, 64);
/* oklch */ color: oklch(25.1% 0.093 313.6);
Tailwind
colors: {
  custom: {
    50: '#6b5075',
    500: '#310f40',
    950: '#000000',
  },
}
SCSS
$custom: #310f40;
$custom-light: #6b5075;
$custom-dark: #000000;
JSON
{
  "hex": "#310f40",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 281.633,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25054,
    "c": 0.09251,
    "h": 313.6
  },
  "luminance": 0.01365
}

Semantic roles & 50–950 ramp

primary
#310F40
secondary
#477A30
accent
#E54374
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310F40

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

Preview Lab → · Contrast checker → · Palette generator →

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