#310346#310346

#310346 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.115 H 311.5°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#310346
RGBrgb(49, 3, 70)
HSLhsl(281, 92%, 14%)
HSVhsv(281, 96%, 27%)
CMYKcmyk(30%, 95.7%, 0%, 72.5%)
CIE-LABlab(10.26, 33.58, -30.36)
CIE-LCHlch(10.26, 45.27, 317.88°)
OKLaboklab(24.19% 0.0764 -0.0862)
OKLCHoklch(24.19% 0.115 311.5)
XYZxyz(2.4045, 1.1604, 5.8905)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310346 #184603
analogous
#100346 #310346 #46033A
triadic
#310346 #463103 #034631
tetradic
#310346 #461003 #184603 #033A46
square
#310346 #461003 #184603 #033A46
split-complementary
#310346 #3A4603 #034610
monochromatic
#15011D #15011D #310346 #5A0681 #8308BB

Accessibility & contrast

On white

17.05
#310346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#310346 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310346
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310346#FFFFFF#000000##FFFFFF
##3103461.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001D45
Tritanopia (blue-blind)
#2E1526
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310346;
/* rgb */ color: rgb(49, 3, 70);
/* oklch */ color: oklch(24.2% 0.115 311.5);
Tailwind
colors: {
  custom: {
    50: '#6d4b7a',
    500: '#310346',
    950: '#000000',
  },
}
SCSS
$custom: #310346;
$custom-light: #6d4b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#310346",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 70
  },
  "hsl": {
    "h": 281.194,
    "s": 91.781,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24187,
    "c": 0.11518,
    "h": 311.5
  },
  "luminance": 0.0116
}

Semantic roles & 50–950 ramp

primary
#310346
secondary
#3F871D
accent
#FF296C
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #310346

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

Preview Lab → · Contrast checker → · Palette generator →

#310346 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva